Keyboard shortcuts are highly used by the high speed programmers as well as normal programmers.As usual the Eclipse IDE also provide certain keyboard shortcuts to the following actions.Lets examine what all are the various shortcuts.


NAVIGATION SHORTCUTS:


Shortcut
Description
Control + Shift+ ROpen / Search for resources, e.g. files
Control + Shift + TOpen / Search for Types
Control + F8Shortcut for switching perspectives
Control + EAllows to select an editor from the currently open editors
Alt + ← or Alt + →Go to previous/ next editor position in history
F3Go to the declaration of this variable
Ctrl-PageUp/PageDownSwitch to previous/next editor
Control + Shift + PGo to the matching bracket


SEARCH SHORTCUTS:

ShortcutDescription
Control + .Open / Search for resources, e.g. files
Control+ ,Open / Search for Types
Control+ J , Control + KShortcut for switching perspectives
Control + Shift+ GAllows to select an editor from the currently open editors
F4 on a variableGo to previous/ next editor position in history


EDITING SHORTCUTS:

ShortcutDescription
Ctrl + Alt + ZWrap the select block of code into a block, e.g. try/catch.
Ctrl + QGo to position the cursor at the last changed position in the editor.
Ctrl + Shift + OShow all methods of the current class, press Ctrl + O again to show the inherited methods.
Ctrl + Shift + FFormat source code
Ctrl + MMaximize Java editor
F12Focuses on the editor (especially helpful if you work with Fast Views).
Ctrl + OShow all methods of the current class, press Ctrl + O again to show the inherited methods.
Ctrl + TShow the inheritance tree of the current Java class
Ctrl + SpaceContent assist/ code completion
Ctrl + 1Quickfix; result depending on cursor position


RUNNING PROGRAM SHORTCUTS:

ShortcutDescription
Ctrl + F11Run last launched
Alt + Shift + X – JRun current selected class as Java application


ARROW KEY SHORTCUTS:

ShortcutDescription
Ctrl + LeftWrap the select block of code into a block, e.g. try/catch.
Ctrl + RightGo to position the cursor at the last changed position in the editor.
Ctrl + Alt + Up/DownShow all methods of the current class, press Ctrl + O again to show the inherited methods.
Alt + Up / DownFormat source code
Alt + Shift Up / DownMaximize Java editor
Alt + Shift Up / Down / Left / RightFocuses on the editor (especially helpful if you work with Fast Views).
Ctrl + Up / DownShow all methods of the current class, press Ctrl + O again to show the inherited methods.


DELETE SHORTCUTS:

ShortcutDescription
Ctrl + BACKSPACEDelete previous element
Ctrl + DELDelete next element
Ctrl + Shift + DELDelete until end of line
Ctrl + DDeletes line


VARIABLE ASSIGNMENT SHORTCUTS:

ShortcutDescription
Ctrl + 2, LAssign statement to new local variable
Ctrl + 2, FAssign statement to new field


CODING SHORTCUTS:

ShortcutDescription
Shift + F2Show the Javadoc for the selected type / class / method
Alt+Shift + N + LetterType shortcut for the command, e.g. njc to create a new Java class or npip to create a new Plugin project
Alt + Shift +  ZSurround block with try and catch


REFACTORING SHORTCUTS:

ShortcutDescription
Alt + Shift + RRename
Ctrl+2, RRename locally (in file), faster then Alt + Shift + R
Alt + Shift + TOpens the quick refactoring menu


MUST KNOWN SHORTCUTS:

ShortcutDescription
Ctrl + SSaves current editor
Ctrl + 1Quickfix; shows potential fixes for warnings, errors or shows possible actions
Ctrl + SpaceContent assist/ code completion
Ctrl + QGoes to the last edited position
Ctrl+ DDeletes current line in the editor
Ctrl + Shift + OAdjusts the imports statements in the current Java source file
Ctrl + 2, L or FAssign statement to new local variable or field
Ctrl + Shift + TOpen Type Dialog
Ctrl + OShows quick outline of a class
Ctrl + F11Run last launched application
Ctrl + 2, L or FShows quick outline of a class

Post a Comment

 
Top