Eclipse IDE keyboard shortcuts
Eclipse IDE is a free, extensible development environment best known for Java, but widely used for C/C++, PHP and enterprise tooling. Its refactoring, navigation and debugging commands are all keyboard-driven, and learning them is the difference between fighting the IDE and flying through large codebases. This cheat sheet covers 63 default shortcuts for Windows and Mac.
General
| Quick Access (find any command, view or setting) | Ctrl+3Cmd+3 |
| Show key assist (list all shortcuts) | Ctrl+Shift+LCmd+Shift+L |
| New wizard (file, class, project) | Ctrl+NCmd+N |
| Save | Ctrl+SCmd+S |
| Save all | Ctrl+Shift+SCmd+Shift+S |
| Close editor | Ctrl+WCmd+W |
| Close all editors | Ctrl+Shift+WCmd+Shift+W |
| Build all | Ctrl+BCmd+B |
Navigation
| Open Resource (any file by name) | Ctrl+Shift+RCmd+Shift+R |
| Open Type (any class by name) | Ctrl+Shift+TCmd+Shift+T |
| Open declaration | F3F3 |
| Quick outline of current file | Ctrl+OCmd+O |
| Quick type hierarchy | Ctrl+TCmd+T |
| Open type hierarchy view | F4F4 |
| Open call hierarchy | Ctrl+Alt+HCtrl+Option+H |
| Find references in workspace | Ctrl+Shift+GCmd+Shift+G |
| Go to line | Ctrl+LCmd+L |
| Go to matching bracket | Ctrl+Shift+PCmd+Shift+P |
| Back (navigation history) | Alt+LeftCmd+[ |
| Forward (navigation history) | Alt+RightCmd+] |
| Last edit location | Ctrl+QCtrl+Q |
| Next annotation (error/warning) | Ctrl+.Cmd+. |
| Show hover tooltip / Javadoc | F2F2 |
| Show In menu (Project Explorer, etc.) | Alt+Shift+WCmd+Option+W |
Editing
| Content assist (code completion) | Ctrl+SpaceCtrl+Space |
| Quick fix / quick assist | Ctrl+1Cmd+1 |
| Delete line | Ctrl+DCmd+D |
| Move line up | Alt+UpOption+Up |
| Move line down | Alt+DownOption+Down |
| Duplicate (copy) lines | Ctrl+Alt+DownCmd+Option+Down |
| Toggle line comment | Ctrl+/Cmd+/ |
| Add block comment | Ctrl+Shift+/Cmd+Shift+/ |
| Remove block comment | Ctrl+Shift+\Cmd+Shift+\ |
| Correct indentation | Ctrl+ICmd+I |
| Convert selection to uppercase | Ctrl+Shift+XCmd+Shift+X |
| Convert selection to lowercase | Ctrl+Shift+YCmd+Shift+Y |
Source & Refactoring
| Format source code | Ctrl+Shift+FCmd+Shift+F |
| Organize imports | Ctrl+Shift+OCmd+Shift+O |
| Add import for selected type | Ctrl+Shift+MCmd+Shift+M |
| Source menu (getters, overrides, etc.) | Alt+Shift+SCmd+Option+S |
| Refactor quick menu | Alt+Shift+TCmd+Option+T |
| Rename | Alt+Shift+RCmd+Option+R |
| Extract method | Alt+Shift+MCmd+Option+M |
| Extract local variable | Alt+Shift+LCmd+Option+L |
| Inline | Alt+Shift+ICmd+Option+I |
| Move | Alt+Shift+VCmd+Option+V |
Search
| Find / replace in file | Ctrl+FCmd+F |
| Find next | Ctrl+KCmd+K |
| Incremental find | Ctrl+JCmd+J |
| Open search dialog (file/Java search) | Ctrl+HCtrl+H |
Run & Debug
| Run (last launched) | Ctrl+F11Cmd+F11 |
| Debug (last launched) | F11F11 |
| Toggle breakpoint | Ctrl+Shift+BCmd+Shift+B |
| Step into | F5F5 |
| Step over | F6F6 |
| Step return | F7F7 |
| Resume | F8F8 |
| Inspect selected expression | Ctrl+Shift+ICmd+Shift+I |
Editors & Views
| Switch editor (quick list) | Ctrl+ECmd+E |
| Next editor | Ctrl+F6Cmd+F6 |
| Next view | Ctrl+F7Cmd+F7 |
| Next perspective | Ctrl+F8Cmd+F8 |
| Maximize / restore editor | Ctrl+MCmd+M |
Put your top Eclipse IDE shortcuts on real keys
The five Eclipse IDE actions most worth binding to a physical macropad key:
Ctrl+1Cmd+1 Quick Fix The highest-frequency command in Eclipse: fixes errors and offers refactorings everywhere.
Ctrl+Shift+RCmd+Shift+R Open Resource Jump to any file in the workspace in one press instead of digging through the explorer.
Ctrl+Shift+FCmd+Shift+F Format source code Run before every save and commit; a dedicated key makes clean diffs automatic.
Alt+Shift+RCmd+Option+R Rename refactor Safe project-wide renames are constant work in Java; awkward finger chord on the keyboard.
F8F8 Resume debugger Pressed dozens of times per debug session when stepping between breakpoints.
I hand-build small-batch programmable macropads (QMK/VIA) in Barcelona. One press, any shortcut, any app.
Eclipse IDE shortcut FAQs
How do I see all keyboard shortcuts in Eclipse?
Press Ctrl+Shift+L (Cmd+Shift+L on Mac) to open the key assist popup listing every binding. Press it twice to jump straight to the Keys preference page where you can rebind anything.
What is the most useful Eclipse shortcut?
Ctrl+1 (Cmd+1 on Mac), Quick Fix. It contextually fixes errors, creates missing methods, adds casts and offers refactorings, so many developers consider it the single highest-value key in Eclipse.
How do I open any file or class quickly in Eclipse?
Use Ctrl+Shift+R (Cmd+Shift+R) for Open Resource to find any file, and Ctrl+Shift+T (Cmd+Shift+T) for Open Type to find any Java class. Both support CamelCase filtering like NPE for NullPointerException.
Can I change keyboard shortcuts in Eclipse?
Yes. Go to Window > Preferences > General > Keys (Eclipse > Settings on Mac), where you can rebind any command or switch the whole scheme, including an Emacs scheme.
How do I format code automatically in Eclipse?
Press Ctrl+Shift+F (Cmd+Shift+F) to format the file or selection, and Ctrl+Shift+O (Cmd+Shift+O) to organize imports. Both use the formatter profile set in the project preferences.