Catalog / Eclipse IDE Cheat Sheet
Eclipse IDE Cheat Sheet
A comprehensive cheat sheet for the Eclipse IDE, covering essential features, shortcuts, debugging, and refactoring techniques to boost developer productivity.
General Usage & Navigation
Basic Shortcuts
|
Open Resource (files, etc.) |
|
Open Type (classes, interfaces) |
|
New… (project, file, class, etc.) |
|
Quick Outline (members of current file) |
|
Open Editor (switch between open files) |
|
Open Editor in Group |
|
Next Editor |
|
Previous Editor |
Navigation
|
Open Declaration (go to definition) |
|
Open Call Hierarchy |
|
Go Back (in navigation history) |
|
Go Forward (in navigation history) |
|
Go to Line |
|
Find References in Workspace |
Working Sets
Working sets group projects for easier management. Useful for large projects.
|
Editing & Refactoring
Code Completion & Generation
|
Code Completion (suggests methods, variables, etc.) |
|
Quick Fix/Assist (suggests solutions to errors, generates code) |
|
Source Menu (generate getters/setters, constructors, delegate methods, etc.) |
|
Organize Imports (add/remove import statements) |
|
Correct indentation |
|
Format code |
Refactoring
|
Rename (refactor variable, method, class names) |
|
Extract Method (create a new method from selected code) |
|
Change Method Signature |
|
Move (move classes, packages, etc.) |
|
Inline (replace method call with method body) |
|
Extract Local Variable (create a new local variable from selected expression) |
Code Templates
Code templates are predefined code snippets that can be inserted into your code.
|
Debugging
Debugging Basics
|
Step Into (go into the method) |
|
Step Over (go to the next line) |
|
Step Return (go out of the method) |
|
Resume (continue execution) |
|
Toggle Breakpoint (add/remove breakpoint at current line) |
|
Run to Line |
Breakpoints
Breakpoints halt execution at specific locations. Right-click in the editor’s left margin to set breakpoints.
|
Inspecting Variables
During debugging, you can inspect variable values.
|
Search and Customization
Advanced Search
Eclipse provides powerful search capabilities.
|
Customization
Perspectives |
Arrangements of views and editors tailored to specific tasks (e.g., Java, Debug). |
Views |
Reusable components that display information (e.g., Project Explorer, Outline). |
Editors |
Components for editing files. Eclipse supports various editors for different file types. |
Key Bindings |
Customize keyboard shortcuts. |
Themes |
Change the look and feel of Eclipse. |