Describe |
Eclipse |
IntelliJ |
Code completion |
alt+/ |
Ctrl+space: Basic Completion Ctrl+shift+space: Intelligent completion Ctrl+shift+enter: Statement completion |
Find All Classes |
Ctrl+shift +t |
CTRL + N |
Find the classes in this project |
Ctrl+shift+r |
Ctrl+shift+n Ctrl+shift+alt+n |
Open declaration |
F3 |
Ctrl+b |
View javadoc/Details |
Mouse over (F2 focus) |
Ctrl+q |
Quick fix |
Ctrl+1 |
Alt+enter |
Import all the required packages |
Ctrl+shift+o |
Ctrl+alt+o |
Save File/Save All Files |
Ctrl+s/ctrl+shift+s |
Auto Save |
Source (Generate getter and setter, constructor, etc.) |
Alt+shift+s |
Alt+insert |
Current syntax completion Correct syntax constructs such as If,do-while,try-catch,return (method invocation) (e.g., adding parentheses) |
|
Ctrl+shift+enter |
Extract variable |
Ctrl+alt+l |
Ctrl+alt+v |
Modify the class name or variable name |
Alt+shift+r |
Shift+f6 |
Formatting |
Ctrl+shift+f |
Ctrl+alt+l |
Automatically get the return value |
Alt+shift+l |
Ctrl+shift+f6 (pending test) |
View class Structure |
F4 |
Ctrl+h |
Toggle File |
Ctrl+e |
Ctrl+tab |
Linking to a method (opening a declaration) |
F3 |
Ctrl+b |
Open Outline (View all methods of the current class, fields) |
Ctrl+o |
Ctrl+f12 |
Line Comment |
ctrl+/ |
ctrl+/ |
Block annotations |
ctrl+shift+/ |
ctrl+shift+/ |
Add, delete, and move several lines of code |
Move the cursor to the next line |
Shift+enter |
Shift+enter |
Copy a line or code snippet |
Ctrl+alt+up/down |
Ctrl+d |
Delete a line of code |
Ctrl+d |
Ctrl+y |
Select code to move up or down |
Alt+up/down |
Shift+alt+up/down |
Select a row |
|
Ctrl+w |
Find/Search |
Find a class/variable to use in a workspace or project |
Ctrl+shift+g |
Alt+f7 |
Find text in a project or workspace |
Ctrl+h (select File search) |
Ctrl+shift+f |
Navigation |
Navigating between labels/edits |
Ctrl + Page Down/up |
Alt + Left/alt + Right |
Jump to a row |
Ctrl+l |
Ctrl+g |
Navigate to the nearest file |
Ctrl + E |
Ctrl + E |
Quick way to switch between editors |
|
Alt + Up/down |
Debugging |
Run a row |
F6 |
F8 |
Go to the next calculation |
F5 |
F7 |
Step out |
F7 |
Shift+f8 |
Run directly |
F8 |
F9 |
idea:whenyou don ' t know the shortcut for someaction, try using the Find action feature Availablevia ctrl+shift+a.
If you have any questions above, please correct me.
The personal feel of using more:
Quick FIX: Alt+enter
Build Method: Alt+insert
Another idea code hint shortcut key Ctrl+space and input method is conflicting, so it is better to change, such as change to eclipse of the alt+/
Add:
Eclipse:
Alt+shift+a locally selected data, similar to other editors ' Alt
Ctrl+alt+h query references all places of the current method