Introduction
Eclipse is a popular integrated development environment (IDE) for Java and other programming languages. Mastering Eclipse keyboard shortcuts can greatly enhance your productivity and streamline your development workflow. This cheat sheet provides a quick reference to some of the most commonly used Eclipse shortcuts.
Eclipse Keyboard Shortcuts Cheat Sheet
Here’s a handy cheat sheet of the most commonly used Eclipse keyboard shortcuts:
Shortcut (Windows/Linux) | Shortcut (macOS) | Description |
---|---|---|
Ctrl + Shift + R |
Cmd + Shift + R |
Open Resource. |
Ctrl + Shift + T |
Cmd + Shift + T |
Open Type. |
Ctrl + Shift + E |
Cmd + Shift + E |
Show Opened Editors. |
Ctrl + F6 |
Cmd + F6 |
Switch between editors. |
Ctrl + F7 |
Cmd + F7 |
Switch between views. |
Ctrl + F8 |
Cmd + F8 |
Switch between perspectives. |
Ctrl + 3 |
Cmd + 3 |
Open Quick Access. |
Alt + Left |
Ctrl + Left |
Go to previous editor. |
Alt + Right |
Ctrl + Right |
Go to next editor. |
Ctrl + Shift + F4 |
Cmd + Shift + F4 |
Close all editors. |
Ctrl + Space |
Ctrl + Space |
Content Assist. |
Ctrl + Shift + F |
Cmd + Shift + F |
Format. |
Ctrl + D |
Cmd + D |
Delete line. |
Ctrl + Alt + Down |
Cmd + Option + Down |
Duplicate line. |
Alt + Up |
Option + Up |
Move line up. |
Alt + Down |
Option + Down |
Move line down. |
Ctrl + / |
Cmd + / |
Toggle comment. |
Ctrl + Shift + / |
Cmd + Shift + / |
Add block comment. |
Ctrl + Shift + \ |
Cmd + Shift + \ |
Remove block comment. |
Ctrl + L |
Cmd + L |
Go to line. |
Ctrl + F |
Cmd + F |
Find/Replace. |
Ctrl + H |
Cmd + H |
Open Search Dialog. |
F3 |
F3 |
Open Declaration. |
F4 |
F4 |
Open Type Hierarchy. |
Ctrl + O |
Cmd + O |
Quick Outline. |
Ctrl + Shift + T |
Cmd + Shift + T |
Open Type. |
Ctrl + Shift + L |
Cmd + Shift + L |
Show key bindings. |
Ctrl + Shift + P |
Cmd + Shift + P |
Go to matching bracket. |
F11 |
F11 |
Debug. |
Ctrl + F11 |
Cmd + F11 |
Run. |
Ctrl + M |
Cmd + M |
Maximize/Minimize current tab. |
Ctrl + Shift + F7 |
Cmd + Shift + F7 |
Show View (e.g., console, problems). |
Ctrl + Shift + G |
Cmd + Shift + G |
Find references in workspace. |
Ctrl + Shift + O |
Cmd + Shift + O |
Organize imports. |
Ctrl + Shift + S |
Cmd + Shift + S |
Save All. |
Ctrl + N |
Cmd + N |
Open new wizard. |
Ctrl + Shift + A |
Cmd + Shift + A |
Open new annotation. |
Ctrl + Shift + X |
Cmd + Shift + X |
Convert selection to uppercase. |
Ctrl + Shift + Y |
Cmd + Shift + Y |
Convert selection to lowercase. |
Ctrl + Shift + M |
Cmd + Shift + M |
Add import for selected type. |
Ctrl + Shift + . |
Cmd + Shift + . |
Next member. |
Ctrl + Shift + , |
Cmd + Shift + , |
Previous member. |
Alt + Shift + R |
Option + Shift + R |
Rename. |
Alt + Shift + L |
Option + Shift + L |
Extract local variable. |
Alt + Shift + M |
Option + Shift + M |
Extract method. |
Alt + Shift + C |
Option + Shift + C |
Change method signature. |
Alt + Shift + T |
Option + Shift + T |
Show refactoring menu. |
Ctrl + J |
Cmd + J |
Incremental find. |
Ctrl + Q |
Cmd + Q |
Last edit location. |
Ctrl + Shift + R |
Cmd + Shift + R |
Open resource. |
Ctrl + Shift + M |
Cmd + Shift + M |
Add import. |
Ctrl + Shift + F3 |
Cmd + Shift + F3 |
Open declaration in new editor. |
Alt + Shift + B |
Option + Shift + B |
Toggle breakpoint. |
F5 |
F5 |
Step into. |
F6 |
F6 |
Step over. |
F7 |
F7 |
Step return. |
F8 |
F8 |
Resume. |
Ctrl + Shift + F |
Cmd + Shift + F |
Format source code. |
Ctrl + Shift + Z |
Cmd + Shift + Z |
Redo. |
Ctrl + Z |
Cmd + Z |
Undo. |
Conclusion
Mastering Eclipse keyboard shortcuts is essential for navigating the IDE efficiently and boosting your productivity. This cheat sheet provides a quick reference to some of the most commonly used shortcuts, helping you perform tasks faster and more effectively. Keep this guide handy to make the most of Eclipse. Happy coding!