- Solar Eclipse Cheat Sheet
- Eclipse Cheat Sheet
- Eclipse Cheat Sheet Examples
- Eclipse Cheat Sheet Tutorial
The Eclipse Phase: System Cheat Sheet is licensed under the Creative Commons Attribution-Noncommercial-ShareAlike 3.0 Unported License. Eclipse Phase – System Cheat Sheet (v2) Better Angels – System Cheat Sheet Random GM Tip: Rewind Your Timeline – How to Use Published Sourcebooks. Eclipse CDT Keyboard Shortcuts Cheat Sheet by Etienne Savard pdf, png 300 dpi, png 600 dpi (symbiosoft.net) Eclipse Keyboard Shortcuts by Jesper Kamstrup Linnet pdf, rtf (eclipse-tools.sourceforge.net) Eclipse CDT 8.0 Cheat Sheet pdf (triada.si) Getting Started with Eclipse by Ed Burnette & Adam Houghton pdf (refcardz.dzone.com).
Here’s a cheat sheet of Eclipse shortcuts I’ve put together to help me work really fast with the IDE. The shortcuts have been categorized into two sections – one that most people know about, and another section that contains the lesser known ones. You should be able quickly scan through the first section, and learn any of the ones that you don’t currently know.
The second section might take longer, and you may want to bookmark this page for future reference.
Easy Shortcuts
Search in files
Use Ctrl–H to search in all files across the workspace or project.
Open Resource
Ctrl–Shift–R opens a resource quickly – without the time it spends for indexing. This makes it especially fast when you’ve just opened a workspace, in comparison to the Open Type shortcut below.
Open Type
Use Ctrl–Shift–T to open a Java type.
While I prefer Ctrl–Shift–R to search for files, Ctrl–Shift–T works better if you want to search for Java classes or interfaces.
Open the Type Hierarchy
Use Ctrl–T to get a popup window with the type hierarchy for the type under your cursor.
This is tremendously useful to see inherited types, sub-types, and implemented interfaces.
Press Ctrl–T again to toggle between super-types and sub-types.
Display members and inherited members
Pressing Ctrl–O displays the class members, pressing it again displays the inherited members too!
Focusing on the tooltip
Press F2 to get the tooltip for the item currently under the cursor.
Correcting Indentation of Selected Text
Use Ctrl–I to correct indentation.
Debuggging
Use F5 to Step into, F6 to Step over, F7 to step out, and F8 to resume. See below for more shortcuts on debugging.
New File Wizard
Use Ctrl–N to start the new File Wizard.
Lesser Known Shortcuts
Solar Eclipse Cheat Sheet
Ctrl–Tab to Switch Between Windows
Go to General->Keys to see all shortcuts.
Change the binding of Next Editor and Previous Editor to use Tab instead of F6 – this makes it incredibly easy to switch between open editors. I often dislike changing keyboard shortcuts so that it’s easy to work on someone else’s machine too, but I couldn’t resist this one.
Cycle through tabs in the current view
Similar to the above, but still slightly different: Use Ctrl–PgUp and Ctrl–PgDn to switch between tabs in your current view, without showing you the complete list of available tabs.
Scroll without using the mouse
Use Ctrl–Up and Ctrl–Down to scroll, while keeping your cursor in the same position!
Move a line or lines
Use Alt–Up and Alt–Down to move selected lines, or the current line.
Eclipse Cheat Sheet
Jump to matching bracket
Ctrl–Shift–P on a bracket, brace or parenthesis moves the cursor to its matching bracket, brace or parenthesis.
Progressively Select Blocks
Use Shift–Alt–Up / Shift–Alt–Down to progressive select blocks.
Find references
Ctrl–Shift–G will find references to the item under the cursor.
Find declarations (Only C++/Javascript)
Ctrl–G finds declarations of the item under the cursor.
Open Declaration
F3 opens the declaration for the item under the cursor.
Find previous and next, based on selection
Use Shift–Ctrl–K and Ctrl–K to find the previous and next occurrences of the item under the cursor.
I had to set Ctrl–K for “Find next” in Preferences->General->Keys, but the shortcut for “Find previous” was there by default.
CamelCase Code Completion
If you have a class that has a VeryLongName
, simply type VLN and press Ctrl–Space to see VeryLongName
as one of the suggestions.
Automatically Insert Braces and Semicolons at the correct position
This isn’t a shortcut – but a useful productivity boost. Setting semicolons and braces to be automatically inserted in the correct position allows you to type them in from anywhere but they actually appear at the end of the line. Escaping text in string literals is another useful option.
Eclipse Cheat Sheet Examples
Quick Access Menu
Quickly access any menu, command, editor, etc by typing in Ctrl–3 and then the initial letters of the item you want.
History
Use Alt–Left and Alt–Right to navigate between your editor history items. This is equivalent to using the history icons on the toolbar.
Quick Fix
Use Ctrl–1 to get to the quick fix menu and quickly fix compile-time issues.
Debugging
Use Ctrl–R to run to the current line. Use Ctrl–Shift–B to toggle a breakpoint. F11 debugs the last run program, while Ctrl–F11 runs it.
Eclipse Cheat Sheet Tutorial
Refactoring
Shift–Alt–R renames an item and updates all references. Use Shift–Alt–L to extract code to a local variable, and Shift–Alt–M to move code to a method.
The Best of them all!
And finally, which one’s the greatest shortcut of all? Use Ctrl–Shift–L to get a list of all available shortcuts!!