Eclipse Keyboard Shortcuts
These are some of the fundamental keyboard shortcuts that every developer should know. For macOS, replace Ctrl with Command for most of the commands below.
| Feature | Shortcut | Description |
|---|---|---|
| Autocomplete | Ctrl+space |
Helps complete available variable, class, and method names. |
| System.out.println | syso then Ctrl+space |
Expands to the complete System.out.println statement. |
| Jump to broken code | Ctrl+. |
Moves the cursor to the next error or warning. |
| Code format | Ctrl+Shift+F |
Formats the code in the current file. |
| Search a Java source file | Ctrl+Shift+R |
Opens a search window to find source files by name. |
| Search a Java source/class file | Ctrl+Shift+T |
Opens a search window to find source and class files by name. |
| Refactor | Alt+Ctrl+R |
Renames the selected method, class, or variable across the entire codebase. |
| Save file | Ctrl+S |
Saves the current file. |
| Delete line | Ctrl+D |
Deletes the current line. |
| Organize imports | Ctrl+Shift+O |
Organizes and cleans up import statements. |