Eclipse useful shortcuts Flashcards
Search for resources, e.g. files
Ctrl + Shift + R
Search for Types
Ctrl + Shift + T
Allows to select an editor from the currently open editors
Ctrl + E
Shortcut for switching perspectives
Ctrl + F8
Go to previous/ next editor position in history
Alt + ← or Alt + →
Switch to previous/next editor
Ctrl-PageUp/PageDown
Go to the declaration of this variable
F3
Go to the matching bracket
Ctrl + Shift + P
Go to the next problem / error
Ctrl + .
Go to the previous problem / error
Ctrl + ,
Show type hierarchy of a variable
F4
Incremental search, find next
Ctrl + J , Ctrl + K
Search for references in the workspace
Ctrl + Shift + G
Run last launched
Ctrl + F11
Run current selected class as Java Application
Alt + Shift + X - J
Quickfix; result depending on cursor position
Ctrl + 1
Content assist/ code completion
Ctrl + Space
Show the inheritance tree of the current Java class
Ctrl + T
Show all methods of the current class
Ctrl + O , press Ctrl + O again to show the inherited methods.
Focuses on the editor (especially helpful if you work with Fast Views).
F12
Maximize Java editor
Ctrl + M
Format source code
Ctrl + Shift + F
Organize the imports; will import the missing import statements.
Ctrl + Shift + O
Go to position the cursor at the last changed position in the editor.
Ctrl + Q
Move one element to the left or right
Ctrl + Left / Right
Copy line
Ctrl + Alt + Up/Down
Move line up / down
Alt + Up / Down
Select the previous / next syntactical element
Alt + Shift Up / Down
Extending / Reducing the selection of the previous / next syntactical element
Alt + Shift Up / Down / Left / Right
Scroll up / down a line in the editor
Ctrl + Up / Down
Deletes line
Ctrl + D
Delete until end of line
Ctrl + Shift + DEL
Delete next element
Ctrl + DEL
Delete previous element
Ctrl + BACKSPACE
Assign statement to new local variable
Ctrl + 2, L
Assign statement to new field
Ctrl + 2, F
Show the Javadoc for the selected type / class / method
Shift + F2
Type shortcut for the command, e.g. njc to create a new Java class or npip to create a new Plugin project
Alt+Shift + N + Letter
Surround block with try and catch
Alt + Shift + Z
Rename
Alt + Shift + R
Rename locally (in file), faster then Alt + Shift + R
Ctrl+2, R
Opens the quick refactoring menu
Alt + Shift + T