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. Nitish says:

    Or rather than going through this entire thread… use…
    Ctrl + Shift + L & see all the shortcuts 🙂

  2. Pingback: ThaiDev.org 2.0 - » 10 Shortcuts ที่ใช้บ่อยใน Eclipse

  3. Pingback: TÅ‚m. SK: Dziesięć najczęściej używanych skrótów w Eclipse « Soltys v2.5.7.3.1.2b

  4. Luiz Almeida says:

    Oh God…we forgot The Most: CTRL + SHIFT + F
    I forgave you.

  5. Pingback: Mark McLaren’s Weblog » Blog Archive » Ten Under-Appreciated Eclipse Keystrokes

  6. sasas says:

    ssssssssssssssssssssssss

  7. Alex says:

    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.

  8. rahil says:

    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)

  9. rahil says:

    I find Alt + up/down arrow and Alt Gr + up/down arrow very useful.

  10. Matt Gumbley says:

    Rahil, Ctrl-T is the keystroke you seek – shows types implementing or defining methods. Press it again to show supertype/subtype hierarchy.

Leave a Reply

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