Eclipse Shortcuts
Eclipse Shortcuts
Eclipse Shortcuts
1. Quick Access
Shortcut Description Ctrl + 3 Perform all available actions in Eclipse. This shortcut puts the focus into the Quick Access search box which allows you to execute any Eclipse command.
2. Navigation
2.1. Globally available navigation shortcuts
Table 1. Navigation
Shortcut Ctrl + Shift + T Ctrl + E Ctrl + F8 Description Search dialog for Java Types Search dialog to select an editor from the currently open editors Shortcut for switching perspectives Ctrl + Shift + R Search dialog for resources, e.g. text files
5. Editing
Table 5. Handling the editor
Shortcut Ctrl + 1 Ctrl + Space Ctrl + T Ctrl + O Ctrl + M Ctrl + Shift + F Ctrl + I Ctrl + F Ctrl + Alt + Z Description Quickfix; result depending on cursor position Content assist/ code completion Show the inheritance tree of the current Java class or method. Show all methods of the current class, press Ctrl + O again to show the inherited methods. Maximize active editor or view Format source code Correct indentation, e.g. format tabs/whitespaces in code Opens the find dialog Wrap the select block of code into a block, e.g. try/catch.
Ctrl + Shift + O Organize the imports; adds missing import statements and removes unused ones
Alt + Shift / / / Extending / reducing the selection of the previous / next syntactical element
Table 8. Delete
Shortcut Ctrl + D Ctrl + Shift + DEL Ctrl + DEL Description Deletes line Delete until end of line Delete next element
6. Coding
Table 11. Coding
Shortcut Shift + F2 Alt+Shift + N Description Show the Javadoc for the selected type / class / method Shortcut for the menu to create new objects
7. Refactoring
Table 12. Refactoring
Shortcut Ctrl + 2, R Alt + Shift + T Description Rename locally (in file), faster than Alt + Shift + R Opens the context-sensitive refactoring menu, e.g. displays Alt + Shift + R Rename
8. Minimum
Table 13. Must known shortcuts
Shortcut Ctrl + S Ctrl + 1 Ctrl + Space Ctrl + Q Ctrl+ D Ctrl + 2, L or F Ctrl + Shift + T Ctrl + O Ctrl + F11 Description Saves current editor Quickfix; shows potential fixes for warnings, errors or shows possible actions Content assist/ code completion Goes to the last edited position Deletes current line in the editor Assign statement to new local variable or field Open Type Dialog Shows quick outline of a class Run last launched application
Ctrl + Shift + O Adjusts the imports statements in the current Java source file