Sunday, August 7, 2011

Eclipse IDE Keyboard Shortcuts for Developers


Eclipse IDE is widely used by developers. Eclipse IDE comes with lots of keyboard shortcuts. One should aware of these shortcuts and should use them to make development faster. Following are few shortcuts of eclipse:

Ctrl + S : Save One File          
Ctrl + Shift + S : Save All Opened Files         
Ctrl + N : Open the New Dialog          
Ctrl + 1 : Quick Fix
Ctrl + A : Select All
Ctrl + Shift + F : Format highlighted lines of code or all if none selected
Ctrl + Shift + O : Organize Imports   
Shift + F2 : Open External Javadoc    
Ctrl + Space : Content Assist            
Ctrl + Shift + P : Go to matching bracket or parenthesis     
Ctrl + Shift + R : Open a file/jump to a file
Ctrl + Shift + T : Open a type (e.g.: a class, an interface) without clicking through interminable list of packages
Ctrl + L : Go to line number N in the source file
Ctrl + Q : Go to the last edit location
Ctrl + / : Comment out all lines of code that are highlighted
CTRL + F8 : Shortcut for switching perspectives
CTRL + Shift + Delete : Delete until end of line
CTRL + Delete : Delete next element
CTRL + Backspace : Delete previous element
CTRL + Up / Down : Scroll up / down a line in the editor
Ctrl + F : Find / Replace
Ctrl + O : Go directly to a member (method, variable) of a huge class file
Ctrl + E : Go to other open editors
Ctrl + Shift + F4 : Close all Opened Editors
Alt + Shift + R : For Rename the file
Alt + Shift + L : Extract to Local Variable
Alt + Shift + M : Extract to Method
F3 : Open Declaration
Alt + Shift + X, J : Run As Java Application
Alt + Shift + D, J : Debug As Java Application
Alt + Shift + W : Show the class in the package view.
Ctrl + T : Type hierarchy. Go to a supertype/subtype
Ctrl + Q : Last edit
Alt + Left : Backward History
Alt + Right : Forward History
Ctrl + 1 : Quick Fix
Ctrl + A : Select All
Alt + Shift + S + R : Generate getter and setter methods
Crtl + D : Delete entire line of code
Ctrl + F4 : Close file
Alt + Up Arrow : Move the selected line of code up
Alt + Down Arrow : Move the selected line of code down
Ctrl + H : Search workspace
Ctrl + Shift + Arrow Keys : Jump between methods up/down
Ctrl + Shift + Y/X : Converts to lowercase/uppercase
Ctrl + Shift + U : Show Occurences in File quick menu
Ctrl + Shift + L : Show Key Assist
Ctrl + Shift + G : Find references in workspace
Ctrl + G : Find declarations in workspace
Ctrl + Alt + H : Open call hierarchy
F5 : Refresh

Watch out this video on Eclipse Shortcuts


15 Responses to “Eclipse IDE Keyboard Shortcuts for Developers”

Anonymous said...
November 28, 2011 at 8:35 PM

You can also use Ctrl + Shift + C instead of Ctrl + /.


Sandeep Kumar said...
November 28, 2011 at 10:22 PM

Thanks for the info..will update soon :)


Anonymous said...
November 28, 2011 at 11:23 PM

Ctrl + W closes the current editor, it also works in Firefox to close a tab. Ctrl + PageUp or PageDown moves between editors, it also works in Firefox.


Anonymous said...
November 29, 2011 at 7:20 PM

And a powerfull one that no one never mention anywhere

Alt+Shift+A, "Toggle Block Selection Mode"

that allow you to copy, cut, past and edit vertically.

Like emacs

Epo Jemba


Sandeep Kumar said...
November 29, 2011 at 10:20 PM

Thanks


Anonymous said...
November 30, 2011 at 1:42 PM

> You can also use Ctrl + Shift + C instead of Ctrl + /.

Moreover Ctrl + Shift + C works in e.g. XML files where Ctrl + / does not.


Dirk Estievenart said...
November 30, 2011 at 1:44 PM

One that I use a lot is:
Ctrl + Alt + ArrowDown : duplicate line or selection
and Alt + ArrowDown or ArrowUp : move line or selection down or up


Anonymous said...
November 30, 2011 at 1:47 PM

I spotted
Ctrl + 1 : Quick Fix
Ctrl + A : Select All
twice


rajshekar said...
December 7, 2011 at 3:36 PM

nice


Javin @ Java Debugging in Eclipse said...
December 12, 2011 at 2:05 PM

Good collection. here is my favourite Eclipse keyboard short cuts which I used on daily basis.


extremejava said...
December 16, 2011 at 10:47 PM

Shortcuts definitely increase productivity. Some shortcuts from me at 10 Eclipse Shortcuts


Anonymous said...
January 2, 2012 at 10:14 AM

Very useful! learnt few shortcuts and happy to know..


Madhuka said...
February 10, 2012 at 6:23 PM

Thank you


Anonymous said...
September 19, 2012 at 12:05 PM

Great content, but you should really clean up your page...it looks like homer simpsons web page from the early 90's.


Anonymous said...
November 2, 2012 at 1:28 PM

wondefule bhai with video its good


Post a Comment

© 2011 a2ztechguide.com • All rights reserved.
Blogger Template by Bloggermint