Professional Documents
Culture Documents
Below are some of the useful keyboard shortcuts, which can be used while developing the
application using Eclipse IDE.
This will open up a class in the workspace (or in dependencies such as jar-files), the dialog
accepts wildcards (for instance *Action), another nifty feature are the CamelCase notation to
quickly open a file, for instance if you want to open the class LinkViewAction entering LVA
would give you the correct result right away, and save you some typing.
Same tip as above, but it works on every resource (.jsp, .properties, .xml etc) in your
workspace, same tips for wildcards as above applies.
How do you navigate to a member (method, variable) one option (and most often used) is to
search for it using Ctrl + F, it’s really not that efficient, instead use this short cut to list all the
methods, to narrow the list start typing the method name navigate to the one you want with
the arrow keys and press enter. Even more, press the key another time and it will show you
the inherited members.
• Go to Line (ctrl + L)
Often you find a line number when digging through stack traces and such, to simply go to a
line in the open file press Ctrl + L and enter the line number.
Do you know the scenario when you edit your large class file, and you change something in
one method, and want to go to the last thing you edited in before this? Instead of browsing to
the previous method, finding the right spot use this command to jump right back to the last
edit, use it multiple times to track back in history.
Page 1 of 4
Eclipse
This command will cycle through the errors/warnings in the current file, instead of using the
Problems view.
This shortcut will move a line (or block) of code up/down one line much easier and faster
than cut’n’paste.
Instead of commenting out blocks of code with /* */ use this, it will make every selected line
commented out with a // , to remove the comment invoke this again to remove.
This shortcut is used to find the which all code are using the specified method or variable.
Run/Debug Option
Open Search Dialog Ctrl + H
Sort Members
Debug Last Launched F11
Read Access in
Project
Page 2 of 4
Eclipse
Build All
Ctrl + B
Select Enclosing Element Alt + Shift + Up
Backward History
Alt + Left
Build Clean
Select Next Element Alt + Shift + Right
Forward
Build Project
Select Previous Element Alt + Shift + Left
Forward History
Alt + Right
Close Projec
Go to Line
Ctrl + L
Open Project
Show Tooltip Description F2
Go to Matching
Bracket Ctrl + Shift + P
Properties
Text Editing
Page 3 of 4
Eclipse
Page 4 of 4