The Eclipse platform can be used as a Java development environment. Here are some handy keyboard shortcuts when using it in that capacity. (Note that this is a small subset of the keystrokes available, however these are the ones that I call upon the most.) The official full list of default keyboard shortcuts is also helpful.
NAVIGATION | ||
Ctl-H |
Search | When editing Java files this will open a Java search |
Ctl-Shift-T |
Open type | Opens a dialog box for searching for class |
Ctl-Shift-R |
Open resource | Opens a dialog box for searching for a file |
Ctl-Shift-G |
Find references | Searches the workspace for references to the item under the cursor |
Ctl-G |
Find declarations | Searches the workspace for declarations of to the item under the cursor |
F3 |
Open declaration | Navigates to the declaration of the item under the cursor (Open current selected) |
Ctl-T |
Pop-up type hierarchy | Pops up a window displaying the type hierarchy |
Ctl-O |
Pop-up members | Pops up a searchable window displaying the members; pressing the key again toggles the display of inherited members |
Alt-Left |
Back | |
Alt-Right |
Forward | |
Ctl-PgUp |
Switch to tab left | |
Ctl-PgDown |
Switch to tab right | |
Ctl-Up |
Scroll line up | Moves up the position of the file being edited |
Ctl-Down |
Scroll line down | Moves down the position of the file being edited |
Ctl-M |
Maximize active editor | Toggles the maximization of the current editor |
Ctl-W |
Close active editor window | |
Ctl-E |
Show current editors window | |
CODING | ||
F2 |
Show tooltip | Provides a tooltip for the item under the cursor |
Ctl-1 |
Quick fix | Allows for automatic help while coding, such as adding an import, or delaration |
Ctl-Shift-O |
Organize imports | Arranges imports based on the workspace configuration |
Ctl-I |
Correct indentation | Corrects the indentation of the current line or selected text |
Ctl-Space |
Content assist | Provides completion help while typing |
Ctl-D |
Delete the current line | |
Ctl-Shift-F |
Format code | |
REFACTORING | ||
Alt-Shift-R |
Rename | Renames the item under the cursor, updating the references |
Alt-Shift-L |
Extract local variable | Extracts the expression under the cursor to a local variable and updates references to the same expression with that new variable |
DEBUGGING | ||
F5 |
Step into | |
F6 |
Step over | |
F7 |
Step return | Also known as step out |
F8 |
Resume | |
Ctl-R |
Run to line | |
F11 |
Debug last launched | |
Ctl-Shift-B |
Toggle line breakpoint | Toggles a breakpoint on the current line |
Editor | ||
Ctl-C |
Copy | Copy selected text |
Ctl-Y |
Redo | Redo the last change |
Ctl-Z |
Undo | Undo the last change |