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 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.

  1. Ctrl + Shift + O : Organize imports
  2. Ctrl + Shift + T : Open Type
  3. Ctrl + Shift + F4 : Close all Opened Editors
  4. Ctrl + O : Open declarations
  5. Ctrl + E : Open Editor
  6. Ctrl + / : Line Comment
  7. Alt + Shift + R : Rename
  8. Alt + Shift + L : extract to Local Variable
  9. Alt + Shift + M : extract to Method
  10. 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“.
This entry was posted in eclipse, java, plugins and tagged , . Bookmark the permalink.

36 Responses to TOP 10 Eclipse Shortcuts

  1. Nick Boldt says:

    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)

  2. Ok these are the TOP 15 (almost) shortcuts ๐Ÿ™‚

  3. Fred says:

    You can add also

    CTRL + . to go directly to the next warning or error in your current source file.

  4. 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.

  5. Nirav Thaker says:

    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..

  6. Nirav : OK these qualify for TOP 20 shortcuts.

  7. Gรถrge says:

    Does nobody use Ctrl-S?

    “Save every thirty seconds!”

    ๐Ÿ˜‰

  8. The top 2 have to be Ctrl+1 and Ctrl+Space, and they’re not even on the list.

  9. 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/

  10. 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.”

Leave a Reply

Your email address will not be published. Required fields are marked *