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 | ||
Ctrl-H | Search | When editing Java files this will open a Java search |
Ctrl-Shift-T | Open type | Opens a dialog box for searching for class |
Ctrl-Shift-R | Open resource | Opens a dialog box for searching for a file |
Ctrl-Shift-G | Find references | Searches the workspace for references to the item under the cursor |
Ctrl-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 |
Ctrl-T | Pop-up type hierarchy | Pops up a window displaying the type hierarchy |
Ctrl-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 | |
Ctrl-PgUp | Switch to tab left | |
Ctrl-PgDown | Switch to tab right | |
Ctrl-Up | Scroll line up | Moves up the position of the file being edited |
Ctrl-Down | Scroll line down | Moves down the position of the file being edited |
Ctrl-M | Maximize active editor | Toggles the maximization of the current editor |
Ctrl-W | Close active editor window | |
| CODING | ||
F2 | Show tooltip | Provides a tooltip for the item under the cursor |
Ctrl-1 | Quick fix | Allows for automatic help while coding, such as adding an import, or delaration |
Ctrl-Shift-O | Organize imports | Arranges imports based on the workspace configuration |
Ctrl-I | Correct indentation | Corrects the indentation of the current line or selected text |
Ctrl-Space | Content assist | Provides completion help while typing |
Ctrl-D | Delete the current line | |
| 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 | |
Ctrl-R | Run to line | |
F11 | Debug last launched | |
Ctrl-Shift-B | Toggle line breakpoint | Toggles a breakpoint on the current line |