Eclipse Cheatsheet
#
Eclipse is a popular Integrated Development Environment (IDE) used for Java development, among other languages. It provides powerful tools for coding, debugging, and project management.
Basic Navigation
#
Command/Option | Example | Description |
---|
Ctrl + Shift + R | Ctrl + Shift + R | Open resource |
Ctrl + Shift + T | Ctrl + Shift + T | Open type |
Ctrl + Shift + F | Ctrl + Shift + F | Format code |
Ctrl + F11 | Ctrl + F11 | Run last launched application |
Ctrl + Shift + F10 | Ctrl + Shift + F10 | Run or debug the selected configuration |
Editing Code
#
Command/Option | Example | Description |
---|
Ctrl + C | Ctrl + C | Copy selected text |
Ctrl + X | Ctrl + X | Cut selected text |
Ctrl + V | Ctrl + V | Paste text |
Ctrl + Z | Ctrl + Z | Undo |
Ctrl + Y | Ctrl + Y | Redo |
Ctrl + D | Ctrl + D | Delete current line |
Ctrl + / | Ctrl + / | Toggle comment on selected lines |
Ctrl + Shift + / | Ctrl + Shift + / | Toggle block comment on selected lines |
Searching and Replacing
#
Command/Option | Example | Description |
---|
Ctrl + F | Ctrl + F search_term | Find text in the file |
Ctrl + H | Ctrl + H | Open search dialog |
Ctrl + R | Ctrl + R old_text | Replace text in the file |
Ctrl + Shift + F | Ctrl + Shift + F | Find in files |
Ctrl + Shift + R | Ctrl + Shift + R | Replace in files |
File Management
#
Command/Option | Example | Description |
---|
Ctrl + N | Ctrl + N | New file or project |
Ctrl + S | Ctrl + S | Save file |
Ctrl + Shift + S | Ctrl + Shift + S | Save all files |
Ctrl + W | Ctrl + W | Close current editor |
Ctrl + Shift + W | Ctrl + Shift + W | Close all editors |
Alt + Shift + R | Alt + Shift + R | Rename file or element |
Integrated Terminal
#
Command/Option | Example | Description |
---|
Ctrl + Alt + T | Ctrl + Alt + T | Open integrated terminal |
Ctrl + Shift + T | Ctrl + Shift + T | Open terminal view |
Debugging
#
Command/Option | Example | Description |
---|
F11 | F11 | Start debugging |
F5 | F5 | Step into |
F6 | F6 | Step over |
F7 | F7 | Step return |
Ctrl + F2 | Ctrl + F2 | Terminate debugging session |
Ctrl + Shift + B | Ctrl + Shift + B | Toggle breakpoint |
Project Management
#
Command/Option | Example | Description |
---|
Ctrl + Shift + P | Ctrl + Shift + P | Open project properties |
Ctrl + Shift + F | Ctrl + Shift + F | Format code |
Alt + Shift + F | Alt + Shift + F | Fix import issues |
Miscellaneous
#
Command/Option | Example | Description |
---|
Ctrl + Shift + E | Ctrl + Shift + E | Switch between open editors |
Ctrl + Shift + L | Ctrl + Shift + L | Show keyboard shortcuts |
Ctrl + Shift + X | Ctrl + Shift + X | Convert to uppercase |
Ctrl + Shift + Y | Ctrl + Shift + Y | Convert to lowercase |
This cheatsheet covers the essential Eclipse commands and options to help you navigate, edit, and manage your projects efficiently in Eclipse IDE.