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