Task | Eclipse | Idea |
---|---|---|
Go to declaration (method or class) | F3 | ctrl + b |
Go to line | ctrl + l | ctrl + g |
Show the type hierarchy | F4 | ctrl+h |
Find usages | ctrl+alt+g | ctrl+alt+F7 |
Finds the usages in the same file | ctrl+shift+u | ctrl+f7 |
Rename | alt+shift+r | shift+F6 |
Find file / open resource | ctrl+shift+r | ctrl+shift+N |
Run (java program) | ctrl+shift+x, j | ctrl+shift+F10 |
Organize imports | ctrl+shift+o | ctrl+alt+o |
Show current file structure / outline | ctrl+o | ctrl+F12 |
Create local variable refactoring | ctrl+shift+m | ctrl+alt+V |
System.out.println("") | syso ctrl+space | sout ctrj+j |
Move lines | alt + up/down | ctrl + shift + up/down |
Delete current line | ctrl + d | ctrl + y |
Search (find in path) | ctrl + h | ctrl + shift + f |
If I want to add the semi-colon at the end of a statement | semi set in window-> preferences |
ctrl + shift + enter |
Itroduce local variable | ctrl + 1 or ctrl + shift + l | ctrl + alt + v |
Generate getters / setters | alt + shift + s | alt + insert |
Format code | ctrl + shift + f | ctrl + alt + l |
Redo | ctrl + y | ctrl + shift + z |
Comment out lines | ctrl + shift + c | ctrl + / |
Show call hierarchy | ctrl + alt + h | ctrl + alt + h |
To jump to one of the callers of a method none | ? | ctrl + alt + F7 |
Evaluate expression (in debugger) | ctrl + shift + i | alt + F8 |
Build project | ctrl + F9 |