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“.
Pingback: Top Posts « WordPress.com
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.
Ctrl + i to redo good indentation of the selected code.
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
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.
control f, control-k, and control-w.
> 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.
Ok …i do agree that Ctrl + 1 is a contender to this.
Instead of Ctrl + Shift + O, Ctrl + 1 should be added.
I agree on the excellence of Ctrl+.
However, does anyone know how to make it jump to errors before jumping to warnings?
[Ctrl] + [Space].
It displays code assistence window. It is the most used feature I use in Eclipse.