Monday, 10 February 2014

Eclipse ShortCuts

Hi Folks,
These are the most common Eclipse shortcuts used in the industries
Ctrl+shift+OManaging Packages.Used to import/unimport necessary/unneccessary classes
Ctrl+/Use to comment/uncomment the current line.Single line comment
Ctrl+shift+/Used to comment the selected text.Multiline comments
Ctrl+shift+\Used to uncomment the Multiline comments.Select the commented text first
Ctrl+TPlace the cursor on Interface/Class name first. It gives the list of child classes
Ctrl+Shift+JPlace the cursor inside Method/class.Prepares the javadoc for the classes/methods
Ctrl+WClose the current Editor
Ctrl+Shift+WClose All Opened Editor
Ctrl+space Autocomplete/assist
Sysout+ctrl+space System.out.println
Ctrl + DDelete Current Line
Ctrl + LGoto Line Number
Ctrl+Shift+PGoto Matching Braces
Ctrl+OQuick Out Line
Ctrl+Shift+CChange Method Signature
F3Select the method that is called.Press F3 will take you to the method defination
Ctrl+Shift+GPut the cursor on className/Method Name first.It will show all the references of that class/Method.Find who has called that method
Ctrl+Shift+RUsed to Search for any resources like .java,.jsp within the workspace
Double click  after{Will highlight the whole area covered by the {
Alt+Shift+S,RGenerate getters/Setters
Alt+Shift+XRun As
Alt+Shift+DDebug As
Ctrl+QGoto Last Edited Place
Ctrl+IIndent the current/selected Line
Alt+Shift+RRename a class/variable and refactor it.Changes are affected to all the occurance
Ctrl+Shift+down ArrowMove to next methods/variables
Ctrl+Shift+up ArrowMove to previous  methods/variables
Ctrl+EOpen Editor with all resources of the package
Alt+Shift+WOpen the Code in Navigator or other Explorer
Alt+Shift+MSelect the block of code and press this shortcut.Will form another method containing that selected code.Helps to break the big method into smaller chunks
Alt+Shift+CChange method signature and refactor it.All the references will be updated
Ctrl+Shift+LList all the shortcuts
Alt+up /Down arrowMoves the selected code up or down
Ctrl + Alt + HPlace the cursor at the method name,shows the whole hierarchy of method call

No comments:

Post a Comment