This document discusses shortcuts in the Eclipse IDE to improve productivity. It provides shortcuts for navigation, editing, and refactoring code in Eclipse. Navigation shortcuts include going to declarations, finding references, and moving between editors. Editing shortcuts cover formatting, importing, renaming, and changing case. Refactoring shortcuts allow extracting code into methods or variables, inlining variables or methods, and renaming elements.
3. Navigation
Ctrl + Shift + R
Open an editor on a particular resource.
Ctrl + Shift + T
Open a type in a Java editor.
Ctrl + O
Show the quick outline for the editor input.
4. Navigation
Ctrl + E
Open the editor drop down list.
Ctrl + L
Go to a specified line of text.
Ctrl + Shift + Arrow Up / Arrow Down
Move the caret to the previous/next member of the compilation unit.
5. Navigation
Ctrl + Page Down / Ctrl + Page Up
Switch to next/previous editor.
Ctrl + . / Ctrl + ,
Navigate to the next/previous compile error or warning.
Ctrl + Shift + P
Moves the cursor to the matching bracket.
6. Navigation
Ctrl + + / Ctrl + - (on numeric keyboard )
Collapses/Expand the folded region at the current selection.
Ctrl + Alt + H
Open a call hierarchy on the selected element.
Ctrl + Shift + U
Shows the Occurrences in File quick menu.
7. Navigation
Ctrl + G
Search for declarations of the selected element in the workspace.
Ctrl + Shift + G
Search for references to the selected element in the workspace.
Ctrl + H
Open the search dialog.
8. Editing
Ctrl + 1
Open Quick Fix and Quick Assist.
Ctrl + Shift + O
Evaluate all required imports and replace the current imports.
Ctrl + Shift + F
Format the selected text.
9. Editing
Alt + Up Arrow/ Down Arrow
Moves the selected lines up/down.
Ctrl + Shift + Y
Changes the selection to lower case.
Ctrl + Shift + X
Changes the selection to upper case.
10. Refactoring
Alt + Shift + R
Rename the selected element.
Alt + Shift + C
Change method signature includes parameter names and parameter order.
Alt + Shift + M
Extract a set of statements or an expression into a new method and use the new
method.
11. Refactoring
Alt + Shift + L
Extracts an expression into a new local variable and uses the new local variable.
Alt + Shift + I
Inline a constant, local variable or method.