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. followingTop 10 eclipse shortcutsHelps 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 created methods and probably 500 + lines of code in Java file. A typical development involves commenting and uncommenting"Ctrl +/(Even though we have shortcuts for block commenting, looks like developers use more of Ctrl + /).
- As we comment and uncomment and more class references, we have so far 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 wocould 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"Ctrl + Shift + T".
- By the time we do all this we have too your editors opened and we wowould like to navigate among multiple open editors via"CTRL + E".
- And finally you feel frustrated with so far opened editors and want to close all of them via"CTRL + Shift + F4".