编程知识 cdmana.com

Transition from windows to MAC

Mac Keyboard symbol description

  • == Command
  • == Shift
  • == Caps Lock
  • == Option
  • == Control
  • == Return/Enter
  • == Delete
  • == Forward delete key (Fn+Delete)
  • == up arrow
  • == Down arrow
  • == left arrow
  • == Right arrow
  • == Page Up(Fn+↑)
  • == Page Down(Fn+↓)
  • Home == Fn + ←
  • End == Fn + →
  • == Right tab (Tab key )
  • == Left tab (Shift+Tab)
  • == Escape (Esc)
  • == Power on key

Ctrl

Win Shortcut key Mac Shortcut key Introduce
Ctrl + F Command + F Text search in the current file
Ctrl + R Command + R Replace text in the current file
Ctrl + Z Command + Z revoke
Ctrl + Y Command + Delete Deletes the line where the cursor is located or Delete the selected line
Ctrl + D Command + D Copy the line where the cursor is or Copy the selection , And insert the copy under the cursor position
Ctrl + W Option + On the arrow keys Progressive selection code block . You can select the word or paragraph where the cursor is , Continuous pressing will expand the selection range based on the original selection
Ctrl + E Command + E Show a list of recently opened file records
Ctrl + N Command + O According to the input Class name Find class files
Ctrl + J Command + J Insert a custom dynamic code template
Ctrl + P Command + P Method parameter prompt display
Ctrl + U Command + U Go to the method of the parent class of the current cursor / Interface definition
Ctrl + B Command + B Enter the method where the cursor is / The interface or definition of a variable , Equivalent to Ctrl + Left click
Ctrl + / Command + / Comment the line code where the cursor is , Different annotation symbols will be used according to different file types
Ctrl + F1 Command + F1 Display the error message at the error code where the cursor is
Ctrl + F11 Option + F3 Select Chinese file / Folder , Use mnemonics to set / Bookmark
Ctrl + F12 Command + F12 Pop up the current file structure layer , You can directly input... On the pop-up layer , Screening
Ctrl + Space Control + Space Basic code completion , Default in Windows The system is occupied by the input method , Need to change , It is suggested to amend it to Ctrl + comma
Ctrl + Delete Option + Fn+ Delete Delete the words or Chinese sentences behind the cursor
Ctrl + BackSpace Option + Delete Delete the words or Chinese sentences in front of the cursor
Ctrl + 1,2,3…9 Control + 1,2,3…9 Navigate to the bookmark location of the corresponding value
Ctrl + plus Command + plus Expand code
Ctrl + minus sign Command + minus sign Collapse code
Ctrl + Left click Control + Left click On the title of the open file , Pop up the file path
Ctrl + Left key Option + Left key The cursor jumps to the current word / The beginning of the left side of a Chinese sentence
Ctrl + Right Arrow Option + Right Arrow The cursor jumps to the current word / The right beginning of a Chinese sentence
Ctrl + Forward key There is no shortcut key in the preset Equivalent to mouse wheel forward effect
Ctrl + Back key There is no shortcut key in the preset Equivalent to mouse wheel backward effect

Alt

Win Shortcut key Mac Shortcut key Introduce
Alt + ` Control + V Display the pop-up layer of common operation menu of version control
Alt + F1 Option + F1 Display the current file selection target pop-up layer , There are many targets in the pop-up layer to choose from
Alt + F7 Option + F7 Query the selected object / Variables are quoted
Alt + Enter Option + Enter IntelliJ IDEA According to the cursor problem , Provide quick fix options , The result is different when the cursor is placed in different position
Alt + Insert Command + N Code auto generation , Such as generating objects set / get Method , Constructors ,toString() etc.
Alt + Left key Control + Left key Switch subviews in the currently open window , such as Debug In the window Output、Debugger Isometric view , Use this shortcut key to switch among subviews
Alt + Right Arrow Control + Right Arrow Switch subviews in the currently open window , such as Debug In the window Output、Debugger Isometric view , Use this shortcut key to switch among subviews
Alt + Forward key Control + Forward key The current cursor jumps to the previous method name position of the current file
Alt + Back key Control + Back key The current cursor jumps to the next method name position of the current file
Alt + 1,2,3…9 Command + 1,2,3…9 Display the tab of the corresponding value , among 1 yes Project Most used

Shift

Win Shortcut key Mac Shortcut key Introduce
Shift + F11 Command + F3 Pop up the bookmark display layer
Shift + Tab Shift + Tab remove indent
Shift + Enter Shift + Enter Start a new line . Leave a line under the cursor line , Cursor to new line position
Shift + Left click Shift + Left click Press this shortcut key... On the open filename , You can close the currently open file

Ctrl + Alt

Win Shortcut key Mac Shortcut key Introduce
Ctrl + Alt + L Command + Option + L formatting code , You can use... For the current file and the entire package directory
Ctrl + Alt + O Control + Option + O Optimize imported classes , You can use... For the current file and the entire package directory
Ctrl + Alt + T Command + Option + T Pop up the surround option pop-up layer for the selected code
Ctrl + Alt + S Command + comma open IntelliJ IDEA System settings
Ctrl + Alt + Enter Command + Option + Enter There is a line over the line where the cursor is , Cursor to new line
Ctrl + Alt + Left key Command + Option + Left key Return to the previous operation
Ctrl + Alt + Right Arrow Command + Option + Right Arrow Move on to the previous operation

Ctrl + Shift

Win Shortcut key Mac Shortcut key Introduce
Ctrl + Shift + F Command + Shift + F Search the whole project according to the input or Specify the files in the directory
Ctrl + Shift + R Command + Shift + R Replace the corresponding content according to the input content , The scope is the whole project or Specify the files in the directory
Ctrl + Shift + J Control + Shift + J Automatically merge the next line to the end of the current line
Ctrl + Shift + Z Command + Shift + Z Cancel cancellation
Ctrl + Shift + W Option + Under the direction key Progressive deselect code block . You can select the word or paragraph where the cursor is , Continuous pressing will expand the unchecked range on the basis of the original selection
Ctrl + Shift + N Command + Shift + O Locate... By filename / Open file / Catalog , To open a directory, you need to add a forward slash after the input
Ctrl + Shift + U Command + Shift + U Make the selected code bigger / Rotate lowercase
Ctrl + Shift + T Command + Shift + T Generate unit test classes for the current class , If there are existing unit test classes, you can choose
Ctrl + Shift + C Command + Shift + C Copy the current file disk path to the clipboard
Ctrl + Shift + B Control + Shift + B Jump to type declaration
Ctrl + Shift + / Command + Option + / Code block comments
Ctrl + Shift + [ Command + Shift + [ Select from the cursor position to its top bracket position
Ctrl + Shift + ] Command + Shift + ] Select from the cursor position to its bottom bracket position
Ctrl + Shift + plus Command + Shift + plus Expand all code
Ctrl + Shift + minus sign Command + Shift + minus sign Collapse all code
Ctrl + Shift + F7 Command + Shift + F7 Highlight all the selected text , Press Esc Highlight disappears
Ctrl + Shift + F12 Command + Shift + F12 Editor maximization
Ctrl + Shift + Enter Command + Shift + Enter Auto end code , Add semicolon automatically at the end of line
Ctrl + Shift + Backspace Ctrl + Shift + Backspace Go back to the last modification
Ctrl + Shift + 1,2,3…9 Control + Shift + 1,2,3…9 Quickly add bookmarks with specified values
Ctrl + Shift + Left click Command + Shift + Left click Place the cursor over a class variable , Press this shortcut key to navigate directly to this class
Ctrl + Shift + Left key Option + Shift + Left key On the code file , The cursor jumps to the current word / The beginning of the left side of a Chinese sentence , Select the word at the same time / Chinese sentence
Ctrl + Shift + Right Arrow Option + Shift + Right Arrow On the code file , The cursor jumps to the current word / The right beginning of a Chinese sentence , Select the word at the same time / Chinese sentence
Ctrl + Shift + Forward key Command + Shift + Forward key Cursor over method name , Move the method to the front of the previous method , Adjust the method order
Ctrl + Shift + Back key Command + Shift + Back key Cursor over method name , Move the method to the front of the next method , Adjust the method order

Alt + Shift

Win Shortcut key Mac Shortcut key Introduce
Alt + Shift + N Option + Shift + B choice / add to task
Alt + Shift + Next, double-left click on Option + Shift + Next, double-left click on Select the double clicked word / Chinese sentence , Hold on , You can choose other words at the same time / Chinese sentence
Alt + Shift + Forward key Option + Shift + Forward key Move the cursor line up
Alt + Shift + Back key Option + Shift + Back key Move the cursor line down

Ctrl + Shift + Alt

Win Shortcut key Mac Shortcut key Introduce
Ctrl + Shift + Alt + V Command + Shift + Option + V No format paste
Ctrl + Shift + Alt + S Command + ; Open the current project settings

other

Win Shortcut key Mac Shortcut key Introduce
F2 F2 Jump to the next highlight error or Warning location
F4 F4 Edit source
F11 F3 Bookmark
F12 F12 Go back to the previous tool window
Tab Tab Indent
ESC ESC Enter the code file window from the tool window

版权声明
本文为[yljphp]所创,转载请带上原文链接,感谢

Scroll to Top