Useful Shortcuts in Eclipse
Here are the shortcuts that is used very often by me.
Ctrl + Shift + O |
imports all classes in a file automatically |
Ctrl + O |
show code outline / structure |
Atl + Shift + F | Correct indentation in a file |
Ctrl + I | Correct indentation in a selection |
Ctrl + D | delete a line |
Ctrl + 1 | Quick fix |
Ctrl + B | Build all. Change this short cut to "Build Project" to save your time. |
F11 | Debug |
Ctrl + F11 | Run |
F3 | Open declaration. Go to source. |
Alt + Left Arrow | Go to back |
Alt + Right Arrow | Go to forward |
Ctrl + Shift + R | Open resource like a file |
Ctrl + Shift + B | Toggle break point |
Alt + Shift + J | Add |
Alt + Shift + E | Show in navigator. Not default. Need to set this short cut by yourself |
Ctrl + K | Find next |
Ctrl + Shift + K | Find previous |
Ctrl + Shift + W | Close others. |
Ctrl + H | Show search dialog with various options |
Ctrl + / | Toggle line comment |
Ctrl + Shift + / | Add block comment |
Ctrl + Shift + \ | Remove block comment |
Alt + G | Open implementation |
Alt + Shift + G | Open super implementation |