Top 10 Eclipse Hotkeys
Eclipse has lots and lots of hotkeys, but for daily work you need only a small subset. This are the hotkeys I consider to be the most important time savers:
Moving around
- Ctrl+J — Incremental Search
- Ctrl+Shift+T — Search a type, with search on typing. You can use only the upcase letters (e.g. type “MIL” to find MouseInputListener)
- Ctrl+F6 — Switch between last used files
- F3 — Open declaration
- Ctrl+Alt+H — Open Call Hierarchy
Editing
- Ctrl+1 — Quick Fix: press while cursor is positioned at member variable, parameter, selection, warnings, errors, …
- Ctrl+Space — Context Assist: press after a ., or to use macros (for, while, sysout, …). Press in class-scope to automatically create method declarations.
- Ctrl+Shift+O — Organize Imports
- Ctrl+Shift+F — Reformat source
- Alt+Shift+T — Show Refactor Quick Menu
In case these hotkeys are not enough or you have forgotten which hotkey does what, you can always press Ctrl+Shift+L to get a nice list of all the hotkeys.
21 Comments
Trackbacks
- The Rashad’s Zone » Organization For Eclipse Developers
- Myndian.de
- .bootstrap » Top 10 Eclipse Hotkeys



July 20th, 2006 at 6:22 pm
You forgot Ctrl+Shift+/ for instantly toggling comments!
July 20th, 2006 at 6:43 pm
Using alt+arrow keys to move to previous/next used files is much better than Ctrl-F6
July 20th, 2006 at 8:42 pm
Try, Ctrl+E for me it is better than Ctrl-F6
July 22nd, 2006 at 2:25 pm
Forgot Ctrl + O for Quick Outline
July 25th, 2006 at 12:22 pm
Besides the ones above I also use very frequently:
Alt+Shift+S: show the Source menu (the little brother of Alt+Shift+R)
Ctrl+Shift+R: search for a Resource (the bigger brother of Ctrl+Shift+T which I summon if I e.g. look for a XML file)
Alt+Shift+Up: Expand Selection to enclosing element (saves me many times from leaving the keyboard to grab the mouse)
July 27th, 2006 at 10:34 pm
F3 is a very nice one as well. Put the curser over some method and it will bring you to its declaration.
July 28th, 2006 at 6:28 am
It’s not native to Eclipse, but the Implementors plugin gives you Alt-F3, which takes you to the _implementation_ of the item under the cursor. So instead of taking you to List.add(), it would offer you the choice of ArrayList.add() and LinkedList.add(). If there’s only one choice, it jumps straight to it.
July 28th, 2006 at 6:29 am
Oops, I didn’t think the hyperlink would go with my name. I have nothing to do with the Implementors plugin, just a happy user.
http://eclipse-tools.sourceforge.net/implementors/
July 28th, 2006 at 3:13 pm
I like F3 - to go to declaration code. Useful on large projects.
August 1st, 2006 at 1:49 pm
On Windows-Machines, change Ctrl+F6 (Switch between last used files) to Alt-q. So it is close to Alt-Tab (Win: Switching Programms) This tip is from E.Gamma (i meet him at the JAX)
August 3rd, 2006 at 3:26 pm
Nice trick, OlafK. This is also very useful in Linux since Ctrl+F6 does not work there at all (at least in KDE).
August 8th, 2006 at 9:53 pm
It is nice to rename something at once everywhere in a file (Ctrl + 2, R).
Running JUnit/PDE test (Alt + Shift + X, T)/(Alt + Shift + X, P).
August 10th, 2006 at 12:44 am
CTRL+J is great for incremental find. Did you know you can press it twice to search again for the search term you used before?
August 14th, 2006 at 8:22 am
How to change the key for switching editor to Ctrl+Tab like in Firefox. I am using Eclipse 3.2 and in that somehow original key does not get changed
September 16th, 2007 at 8:36 pm
Hi Martin : Its a very good list too. Ya….as you said we probably we need to collate rest of the popular shortcuts and add them to TOP 100 :). But its really interesting to see which shortcuts are frequently used by others.
December 31st, 2007 at 9:44 am
Eclipse is a very popular Java development environment, IDE and it has a lot hotkeys to remember. Here is a blogger’s day to day use top 10 eclipse hotkeys.
January 6th, 2008 at 12:41 pm
Thanks a lot. Without your post I would have probably still believed that Eclipse is not suited for serious work. I am actually a C++ programmer and a casual Eclipse user.
When I press ctrl+shift+f6 and see the explanation that ctrl + F6 is the “Next Editor” for me it is difficult to guess that this actually means the list of opened windows (most often in the same editor).
March 28th, 2008 at 5:50 pm
My favorite eclipse hotkey is alt-F4 to enable “god mode” and all cheats. Works like a dream