Eclipse have been my favorite Java IDE since I started coding in Java. Shortcuts makes life very easy when you are working with any IDE. Eclipse also comes with lot of shortcuts that makes like of a developer easy.
Following are few shortcuts of my choice.
- Ctrl + Shift + O : Organize imports
- Ctrl + / : Line Comment
- Ctrl + Shift + T : Open Type
- Ctrl + O : Open declarations
- Ctrl + E : Open Editor
- Ctrl + Shift + F4 : Close all Opened Editors
- Alt + Shift + R : Rename
- Alt + Shift + L : Extract to Local Variable
- Alt + Shift + M : Extract to Method
- F3 : Open Declaration
- Alt + Shift + X : Run As…
- Alt + Shift + D : Debug As…
- Alt + Shift + W : show the class in the package view.
- Ctrl + T : Type hierarchy
- Ctrl+Q : Last edit
- Alt + Left or Alt + Right : Navigate Left and Right
- Ctrl + 1 : Quick Fix
- Ctrl + Space : Content Assist
- Alt + Shift + F : Format code
- Alt + Shift + S + R : Generate getter and setter methods
Thaks,
Its very usefull…………………………….. :)
Hello Viral
Really a nice & use full information for any Eclipse user
I want to add only one more in this
Alt + Shift + L For see all the Short Cuts of the eclipse
Hello Viral
Really a nice & use full information for any Eclipse user
I want to add only one more in this
Sorry Please discard my last comment Because it is
Ctrl + Shift + L For see all the Short Cuts of the eclipse
sUperb…….. ;)
thanks sanjay jain
I am using Eclipse from not long ago and I will add some shortcuts to my list:
http://kdelchev.com/2012/02/netbeans-eclipse-pdt-shortcuts-comparison/
There should be comment edit
One of your shortcuts:
Alt + Shift + F : Format code
is not an Eclipse one. It is NetBeans :)
Here is my comparation between both IDEs shortcuts
http://kdelchev.com/2012/02/netbeans-eclipse-pdt-shortcuts-comparison/
Nice tips. I use Ctrl + PgU p/ PgDown frequently to navigate tabs in eclipse.
Really useful tutorial , keep doing the good work.., Thanks.
Very useful short cuts. thanks a lot.
I found below shortcuts to interesting…
Ctrl + / -> Line comment add, remove & Even blk. (inserts //)
Ctrl + Shift + / (\) -> Block comment add, remove (inserts /* */)
Ctrl + Shift + R -> Find resource
Alt + Shift + J -> Add Java Doc Comment
what is the use of this shortcut Ctrl+Shift+D please tell me
there is a small mistake in 19th point.
To format the code we use Ctrl + Shift + F
not Alt +shift + F
:)