Thursday, October 25, 2012

Eclipse Shortcuts


Download the printable version here. Print, use, modify and share!
Navigation
Working with Editor
Ctrl + Shift + R
Open / Search for resources, e.g. files
Ctrl + 1
Quickfix; result depending on cursor position
Ctrl + Shift + T
Open / Search for Types
Ctrl + I
Correct Indentation
Ctrl + E
Allows to select an editor from the currently open editors
Ctrl + Space
Content assist/ code completion
Ctrl + F8
Shortcut for switching perspectives
Ctrl + L
Go to line no
Ctrl + F7
Move between views
Ctrl + T
Show the inheritance tree of the current Java class
Alt + Let / Right
Go to previous/ next editor position in history
F12
Focuses on the editor.
Alt + Up / Down
Move line up / down
Ctrl + M
Maximize Java editor
F3
Go to the declaration of this variable
Ctrl + Shift + F
Format source code
Ctrl + Shift + P
Go to the matching bracket
Ctrl + Shift + O
Organize the imports; will import the missing import statements.
Ctrl + Left / Right
Move one element to the left / right
Ctrl + Q
Go to position the cursor at the last changed.
Ctrl + Up / Down
Scroll up / down a line in the editor
Ctrl + Alt + Z
Wrap the select block of code into a block, e.g. try/catch.
Alt + Shift Up / Down
Select the previous / next syntactical element
Ctrl + 2, L
Assign statement to new local variable
Alt + Shift Up / Down / Left / Right
Extending / Reducing the selection of the previous / next syntactical element
Ctrl + 2, F
Assign statement to new field
Ctrl + .
Go to the next problem / error
Shift + F2
Show the Javadoc for the selected type / class / method
Ctrl + ,
Go to the previous problem / error
Ctrl + Alt + Up/Down
Copy line
Ctrl + H
Java search in workspace
Alt + Shift + Z
Surround block with try and catch
F4 on a variable
Show type hierarchy of an Class
Alt + Shift + R
Rename
Ctrl + J , Ctrl + K
Incremental search, find next
Ctrl+2, R
Rename locally (in file), faster then Alt + Shift + R
Ctrl + Shift + G
Search for references in the workspace
Alt + Shift + T
Opens the quick refactoring menu
Run and Debug
Ctrl + S
Saves current editor
F5
Step into.
Ctrl+ D
Deletes current line in the editor
F6
Step over.
Ctrl + Shift + O
Adjusts the imports statements.
F7
Go to the caller of the method/ function.
Ctrl + 2, L or F
Assign statement to new local variable or field
F8
Go to the next breakpoint.
Ctrl + Shift + T
Open Type Dialog
Ctrl + Q
Inspect
Ctrl + O
Shows quick outline of a class
Ctrl + F11
Run last launched
Ctrl+3
Master Shortcut
Alt + Shift + X - J
Run current selected class as Java application
Ctrl + Alt + L
List out all Shortcuts
Ctrl + F11
Run last launched application


No comments: