Description of Mac keyboard symbols and modifier keys
?
Command
?
Shift
?
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)
First, Editing (edit)
?Space
Basic code completion (complete any class, method, variable)
??Space
Smart Code Completion (Filter method list and expected types of variables)
???
Auto-end code, automatically add semicolon at end of line
?P
Display parameter information for a method
?J, Mid. button click
Quickly view documents
?F1
View external documents (on some code triggers open browser display related documents)
?+鼠标放在代码上
Display Code Summary information
?F1
Display specific description information at error or warning
?N, ??, ?N
Generate code (getter, setter, constructor, hashcode/equals,tostring)
?O
overriding methods (overriding parent class methods)
?I
Implementation method (implements the method in the interface)
??T
Surround the code (using the IF: else, try: Catch, for, synchronized, etc. surround the selected code)
?/
Comment/Uncomment and line comment
??/
Commenting/canceling comments and block annotations
?↑
Continuous selection of code blocks
?↓
Reduce the code block currently selected
??Q
Display contextual information
??
Show intent actions and quick fix codes
??L
Formatting code
??O
Optimize import
??I
Auto Indent Line
? / ??
Indent code/anti-indent code
?X
Cuts the current row or selected block to the Clipboard
?C
Copy the current line or selected block to the Clipboard
?V
Paste from clipboard
??V
Paste from the nearest buffer
?D
Copy the current row or selected block
??
Delete the row of the current row or selected block
??J
Intelligently stitching code into a single line
??
Smart Split stitching Lines
??
Start a new line
??U
Case switching
??] / ??[
Select until code block ends/starts
??
Delete to the end of the word (? Key is Fn+delete)
??
Delete to the beginning of a word
?+ / ?-
Expand/Collapse Code blocks
??+
Expand so the code block
??-
Collapse All code blocks
?W
Close the Active editor tab
Second, search/replace (query/replace)
Double ?
Check anything.
?F
Find in Files
?G
Find mode, look down
??G
Find mode, look up
?R
In-file replacement
??F
Global lookup (depending on path)
??R
Global substitution (based on path)
??S
Query structure (Ultimate Edition version is dedicated, need to be set in Keymap)
??M
Replacement structure (Ultimate Edition version, need to be set in Keymap)
Iii. usage search (using queries)
?F7 / ?F7
Find usages in files/find usages in a class
??F7
The usage highlighted in the file
??F7
Display usage
Iv. Compile and run (compiling and running)
?F9
Compiling project
??F9
Compiling a selected file, package, or module
??R
Pop-up Run's selectable menu
??D
Pop-up Debug selectable menu
?R
Run
?D
Debugging
??R, ??D
To run the context environment configuration from the editor
Five, debugging (commissioning)
F8
Enter next, if the current line breakpoint is a method, do not enter the current method body
F7
In the next step, if the current line breakpoint is a method, enter the current method body, and if the method body has a method, it will not enter the inline method
?F7
Smart step in, there are multiple method calls on the line of the breakpoint, which will pop into which method
?F8
Jump
?F9
Run to the cursor, if there are other breakpoints in front of the cursor to enter the breakpoint
?F8
Evaluate an expression (you can change the value of the variable to take effect)
??R
The recovery program runs and stops at the next breakpoint if the code below the breakpoint has a breakpoint
?F8
Toggle Breakpoint (If the cursor has a breakpoint at the current line, the breakpoint is canceled and no breakpoint is added)
??F8
Viewing breakpoint information
Vi. Navigation (Navigation)
?O
Find class file
??O
Find all types of files, open files, open directories, open directories you need to add a backslash before or after the input/
??O
Go to the specified variable/method
?← / ?→
Toggle open Edit Tab left and right
F12
Go back to the previous tool window
?
Enter the code file window from the tool window
??
Hides the current or last active window, and the cursor enters the code file window
??F4
Close Activity run/messages/find/... tab
?L
Jumps to a line at the specified point in the current file
?E
Displays a list of recently opened file records
??← / ??→
Go back/forward to the last action place
???
Jump to the last edit place
?F1
Display the current file selection target pop-up layer, there are many targets in the pop-up layer can be selected (such as in the Code editing window can select the Finder to display the file)
?B / ? 鼠标点击
Enter the interface or definition of the method/variable where the cursor is located
??B
Jump to the implementation, use the method name on a call will jump to the specific implementation, you can skip the interface
? Space, ?Y
Quick Open cursor method, class definition
??B
Jump to type declaration
?U
Go to the method/interface definition of the parent class of the method where the cursor is currently located
?↓ / ?↑
The current cursor jumps to the previous/next method name location of the current file
?] / ?[
Move the cursor to the start/end position of the curly brace of the current code
?F12
pops up the current file structure layer, which can be filtered directly on the popup layer (can be used to search for methods in the class)
?H
Displays the hierarchy of the current class
??H
Show method Hierarchies
??H
Show Call Hierarchy
F2 / ?F2
Jump to Next/previous highlight error or warning location
F4 / ?↓
Edit/View Code source
? Home
Display the navigation bar to the current file
F3
Select File/folder/Line of code, add/Remove bookmarks
?F3
Select File/folder/Line of code, use mnemonics to add/Remove bookmarks
?0...?9
Position the bookmark location to the corresponding value
?F3
Show All bookmarks
Vii. Refactoring (reconstruction)
F5
Copy files to the specified directory
F6
Move files to the specified directory
??
Delete file on file for safe, popup confirmation box
?F6
Renaming files
?F6
Change signature
??N
Consistency
??M
Extract the selected code as a method
??V
Extracting variables
??F
Extract fields
??C
Extracting constants
??P
Extracting parameters
Viii. vcs/local History (version control/local record)
?K
Submit code to version controller
?T
Updating code from a version controller
??C
View the most recent change history
?C
Quick Eject version Controller operator panel
Ix. Live Templates (Dynamic code template)
??J
Pop-up template selection window, use dynamic template to wrap selected code
?J
Inserting custom dynamic Code templates
X. General (GM)
?1...?9
Open the corresponding numbered tool window
?S
Save All
??Y
Sync, Refresh
??F
Toggle Full Screen mode
??F12
Toggle Maximize Editor
??F
Add to Favorites
??I
Check the current file with the current configuration file
§?, ?`
Quickly switch to Current scheme (toggle theme, code style, etc.)
?,
Open Idea System settings
?;
Open the Project Structure dialog box
??A
Find actions (you can set related options)
??
Toggle between the Edit Window label and the tool window (if you press DELETE in the toggle process, the selected window is closed)
Xi. Other (shortcut keys not shown on some official documents)
Navigation
? O Find class file Ctrl + N
?? O go to the specified variable/method Ctrl + Shift + Alt + N
←/. → Toggle open edit tab alt←/alt→
? Enter the code file window from the tool window ESC
? L jump to a line at the specified point in the current file Ctrl + G
? E displays a list of recently opened file records Ctrl + E
?? ←/?? → Go back/forward to the last action where Ctrl + alt +←ctrl + Alt +→
??? Jump to the last edit place
? H displays the hierarchy of the current class Ctrl + H
?? H Display Method Hierarchy
?? H Show Call Hierarchy
F4/? ↓ Edit/View Code source
?? U Display Class UML diagram
? J View Comments
Edit
?? Delete to the end of the word (? Key is Fn+delete)
?? Delete to the beginning of a word
? +/?-expand/Collapse code blocks
? F1 displaying specific description information at error or warning
?? L Format Code
?? O Optimize Import
?? Start a new line
??? Auto-end code, automatically add semicolon at end of line
? I Implementation method (implements the method in the interface)
? F6 Renaming files or variables
? N??? N Generate code (getter, setter, constructor, hashcode/equals,tostring)
? P Display parameter information for the method
Find
Double? Find anything.
?? F Global Lookup (depending on path)
? F files found in
? G Find mode, look down
?? G Find mode, look up
Navigation
?? B jump to the implementation of the interface
? U View Interface Definition
?? ←/?? → return/advance to the last action place
? B/? Mouse click to enter the cursor in the method/variable interface or define the location
?? B jump to type declaration
? Space, huh? Y Quick Open cursor method, class definition
? O Find class file
?? O Find all types of files, open files, open directories, open directories need to add a backslash before or after the input
F12 back to the previous tool window
? Enter the code file window from the tool window
?? Hides the current or last active window, and the cursor enters the code file window
F3 Select File/Folder/Line of code, add/Remove bookmarks
? F3 Select File/Folder/Line of code, use mnemonics to add/Remove bookmarks
? 0 ...? 9 position the bookmark to the corresponding value
? F3 Show All bookmarks
? F1 Display the current file selection target pop-up layer, there are many targets in the pop-up layer can be selected (such as in the Code editing window can select the Finder to display the file)
? F12 pops up the current file structure layer and can be filtered directly on the popup layer (can be used to search for methods in the class)
General
?? F Toggle Full Screen mode
IntelliJ idea for Mac shortcut keys