TOP 10 Eclipse Shortcuts
Posted by sureshkrishna on September 15, 2007
Most of us who are using eclipse for at least 1 year are familiar with the shortcuts. Its been quite challenging to know and remember all the shortcuts during the development time. And of course we dont need all of them. I have been collecting some shortcuts based on the user experiences and the way they develop software. Following TOP 10 Eclipse Shortcuts helps everyone in their happy day coding.
- Ctrl + Shift + O : Organize imports
- Ctrl + Shift + T : Open Type
- Ctrl + Shift + F4 : Close all Opened Editors
- Ctrl + O : Open declarations
- Ctrl + E : Open Editor
- Ctrl + / : Line Comment
- Alt + Shift + R : Rename
- Alt + Shift + L : extract to Local Variable
- Alt + Shift + M : extract to Method
- F3 : Open Declaration
Let me explain how i got these TOP 10 shortcuts.
- I start developing a plugin. As the development goes i want to refactor the code with “Alt + Shift + L” and “Alt + Shift + L” and “Alt + Shift + M“.
- And not i have many methods and probably 500+ lines of code in java file. A typical development involves commenting and uncommenting via “Ctrl + /” (Even though we have shortcuts for Block Commenting, looks like many developers use more of Ctrl + /).
- As we comment and uncomment and many more class references, we have so many imports that need to be cleaned. We do copy very often from one class to another class, now i want to organize my imports by “Ctrl + Shift + O“
- Now i want to find variable and method declarations via “Ctrl + O“.
- In the course of development i would like to view/analyze the declarations of the methods or classes via “F3″.
- All well till now, i want to use an interface/class and want to search for it via “Ctrl + Shift + T“.
- By the time we do all this we have too many editors opened and we would like to navigate among multiple open editors via “Ctrl + E“.
- And finally you feel frustrated with so many opened editors and want to close all of them via “Ctrl + Shift + F4“.

Nick Boldt said
Egads, you forgot:
CTRL-3: Quick Access (to basically everything; I remap this to CTRL-` because it’s eassier to type one-handed)
CHTL-H: Search & Replace
ALT-SHIFT-X: Run As…
ALT-SHIFT-D: Debug As…
ALT-SHIFT-Q: Open View…
CTRL-TAB / SHIFT-CTRL-TAB: cycle open editors (actually, these are usually on *-F6 but I remap them)
Javin Paul said
here is my list of useful eclipse shortcut I would rather say very useful and practical eclipse shortcut
sureshkrishna said
Ok these are the TOP 15 (almost) shortcuts
Fred said
You can add also
CTRL + . to go directly to the next warning or error in your current source file.
Antoine Toulme said
Alt + Shift + W : show the class in the package view.
I combine Ctrl+ Shift + T or Ctrl + shitft + R with it to avoid having to expand my packages.
Nirav Thaker said
How can you miss Alt+Left or Alt+Right for navigation and Ctrl+Q for last edit as well as Ctrl+T for type hierarchy?? They are so much useful..
sureshkrishna said
Nirav : OK these qualify for TOP 20 shortcuts.
Görge said
Does nobody use Ctrl-S?
“Save every thirty seconds!”
Jeremy Weiskotten said
The top 2 have to be Ctrl+1 and Ctrl+Space, and they’re not even on the list.
Martin Ankerl said
Great list, and with just 10 hotkeys it is impossible to make everyone happy so everybody who says he forgot something, this is a top 10 and not top 100
Also, if you don’t like this list, I have written a similar article some time ago:
http://martin.ankerl.com/2006/07/20/top-10-eclipse-hotkeys/
sureshkrishna said
Oh….Thanks everyone for the inputs.
Disclaimer : “This is a TOP 10 Eclipse Shortcut list, and this does not mean that you can do entire SW development on Eclipse with these 10 Keys. They represent the 10 most frequently used shortcuts.”
Top Posts « WordPress.com said
[...] TOP 10 Eclipse Shortcuts Most of us who are using eclipse for at least 1 year are familiar with the shortcuts. Its been quite challenging to […] [...]
Nikolay said
I have stopped using Ctrl+Shift+O (Organize imports) since the introduction of save participants. I guess Ctrl+S should be in the top 10 instead though.
MrStrike said
Ctrl + i to redo good indentation of the selected code.
Preco said
I really like Ctrl+F11 (Run last launched) or F11 (debug last launched)… It is perfect when I start a project, to see if those magic codes are really working properly
mojojojo_ said
You omitted THE MOST IMPORTANT ONES! The one that really make Eclipse development more enjoyable!!!!!! Ctrl+1 – THE QUICK FIX. It fixes a typical compile errors like no variable declaration, no initialization etc. !!! You should try this! It really accellerates the development!!
My faviorites’ number two and three are Ctr+ . Thanks to them you instantenoeusly jump to the place of the previous or next compile error.
davidm said
control f, control-k, and control-w.
Sha Jiang said
> You omitted THE MOST IMPORTANT ONES!
> The one that really make Eclipse development more enjoyable!!!!!!
> Ctrl+1 – THE QUICK FIX.
I have to agree to this.
Suresh Krishna said
Ok …i do agree that Ctrl + 1 is a contender to this.
Instead of Ctrl + Shift + O, Ctrl + 1 should be added.
Emma said
I agree on the excellence of Ctrl+.
However, does anyone know how to make it jump to errors before jumping to warnings?
Matt said
[Ctrl] + [Space].
It displays code assistence window. It is the most used feature I use in Eclipse.
Nitish said
Or rather than going through this entire thread… use…
Ctrl + Shift + L & see all the shortcuts
ThaiDev.org 2.0 - » 10 Shortcuts ที่ใช้บ่อยใน Eclipse said
[...] shortcut ระหว่างการแก้ไขซอร์สโค้ด บลอก TOP 10 Eclipse Shortcuts ของนาย Suresh Krishna เค้าสรุป 10 shortcut [...]
Tłm. SK: Dziesięć najczęściej używanych skrótów w Eclipse « Soltys v2.5.7.3.1.2b said
[...] Zobowiązałem się dawać trackback do każdego wpisu przetłumaczonego. Oryginalną wersję tego postu znajdziecie tutaj. [...]
Luiz Almeida said
Oh God…we forgot The Most: CTRL + SHIFT + F
I forgave you.
Mark McLaren’s Weblog » Blog Archive » Ten Under-Appreciated Eclipse Keystrokes said
[...] you know Eclipse? Most programmers quickly learn the common keystrokes but never take advantage of all the shortcuts. Here are my favourite lesser-known [...]
sasas said
ssssssssssssssssssssssss
Alex said
I would like to know what the shortcut for “Build” is. I am used to doing flash, and simply hitting CTRL+ENTER and soon as i type a new code block. I’m new to Eclipse, and so it aggravating to take my hands away from the keyboard to click “Build”, so that i can compile and test.
Thanx.
rahil said
Hit F3 on a method, if the reference used for this method if of an interface then that interface will be opened. Is there anyway by which eclipse show me a list of all the implementing classes for that interface rather than going to interface and then hitting f4?
wouldn’t it be cool if eclipse went to the class directly if there is only one implementation of that interface :-O)
rahil said
I find Alt + up/down arrow and Alt Gr + up/down arrow very useful.
Matt Gumbley said
Rahil, Ctrl-T is the keystroke you seek – shows types implementing or defining methods. Press it again to show supertype/subtype hierarchy.
Tłm. SK: Dziesięć najczęściej używanych skrótów w Eclipse | [Tech] Soltys said
[...] Zobowiązałem się dawać trackback do każdego wpisu przetłumaczonego. Oryginalną wersję tego postu znajdziecie tutaj. [...]
karthik said
Just press Ctrl+Shift+L after you opened the eclipse you will find all the short cut key’s……:)
Chaitanya said
this is a very helpful Post .
thank yo so much
But ,
can u please tell me , one short cut ,
if i want to compile a single .cpp or .c file in Eclipse ,
is thr any shortcut available for it ?
or else then short cut also if any method available in eclipse..
please tell me .
Thanx to All in Advance.
Ten Under-Appreciated Eclipse Keystrokes « Mark McLaren's Blog said
[...] you know Eclipse? Most programmers quickly learn the common keystrokes but don’t take advantage of other good shortcuts. Here are my favourite lesser-known [...]
shortcut-finder said
CTRL+1 is top of the list here
http://shortcut-finder.appspot.com/shortcuts.jsp?query=eclipse
javaGuru said
CTRL+SHIFT+F – format code
srinivas said
is there any short cut to search in file option?
thanks in advance.
kayangoky said
comment5, http://drupal.org/search/apachesolr_multisitesearch/LeXxiK%20%D0%9C%D0%BD%D0%B5%20%D0%BD%D0%B0%20%D0%BA%D1%80%D0%B8%D0%B7%D0%B8%D1%81%20%D0%BD%D0%B0%D0%BF%D0%BB%D0%B5%D0%B2%D0%B0%D1%82%D1%8C%2C%20%D0%B2%D1%8B%D0%BB%D0%B5%D0%B7%20%D0%B2%20%D1%82%D0%BE%D0%BF%D0%B5%20%D0%B3%D0%BE%D1%83%20%D0%B1%D1%83%D1%85%D0%B0%D1%82%D1%8C âûëåç â òîïå, comrades
Drew Spencer said
Because I never want to print my code, I bind Ctrl+P to jump straight to Package Explorer. Then use F12 to jump back to code if needed.
Windows 7 said
Windows 7…
[...]TOP 10 Eclipse Shortcuts « Sciology = Science + Technology[...]…
online graduate certificate said
Hi there, I read your new stuff daily. Your writing style is witty, keep up the good work!
gmsp5.blogspot.com said
This seeks to determine if Pure Green Coffee Bean Extract Reviews are widely available in a capsule form.
Most prescription Pure Green Coffee Bean Extract Reviews
are not FDA approved as they are promoted as number one Pure Green
Coffee Bean Extract Reviews despite their lack of approval from FDA.
Manufacturers and scientists wanted to find out how to use green tea without any artificial additives.