Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Look up keyword
Like this
2Activity
0 of .
Results for:
No results containing your search query
P. 1
Eclipse Shortcuts

Eclipse Shortcuts

Ratings: (0)|Views: 306|Likes:
Published by api-19625511

More info:

Published by: api-19625511 on Nov 28, 2009
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as DOC, PDF, TXT or read online from Scribd
See more
See less

03/18/2014

pdf

text

original

Eclipse
Eclipse IDE \u2013 Keyboard Shortcuts
1. Keyboard Shortcuts
Using keyboard shortcuts in my option is a huge productivity booster while developing the
application. The shortcuts specified are for Eclipse 3.0 version and higher.
(Eclipse 3.0 default keyboard shortcuts are available under Window -> Preferences -> Workbench -> Keys)
Below are some of the useful keyboard shortcuts, which can be used while developing the
application using Eclipse IDE.
\u2022
Open type (ctrl + shift + T)

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.

\u2022
Open Resource (ctrl + shift + R)
Same tip as above, but it works on every resource (.jsp, .properties, .xml etc) in your
workspace, same tips for wildcards as above applies.
\u2022
Navigate to member (ctrl + O)

How do you navigate to a member (method, variable) one option (and most often used) is to search for it using Ctrl + F, it\u2019s 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.

\u2022
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.
\u2022
Go to last edit (ctrl +Q)

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.

\u2022
Show type hierarchy (ctrl + T)
This is for showing the hierarchy.
Page 1 of 4
Eclipse
\u2022
Go to open editor (ctrl + E)
This is used for switching between the editors
\u2022
Next error/warning (ctrl + +.)
This command will cycle through the errors/warnings in the current file, instead of using the
Problems view.
\u2022
Move block of code (alt + arrow up/down)
This shortcut will move a line (or block) of code up/down one line much easier and faster
than cut\u2019n\u2019paste.
\u2022
Block comment/uncomment (Shift + Ctrl + /)
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.
\u2022
Search workspace for references (ctrl + shift + G)
This shortcut is used to find the which all code are using the specified method or variable.
\u2022
Reformat code (ctrl + shift + F)
Apply the current code formatting to the open file,
\u2022
Organize imports (ctrl + Shift + O)
To organize the import orders.
\u2022
Build All (ctrl + B)
To start the build project process.
Below table have more keyboard shortcuts:
Short Description
Keyboard Shortcut
Run/Debug Option
Open Search Dialog
Sort Members
Ctrl + H
Debug Last Launched
Read Access in
Project
F11
Page 2 of 4
Eclipse
Short Description
Keyboard Shortcut
Surround With
Try/Catch Block
Display
Read Access in

Working Set
Toggle Comment
Ctrl + / or Ctrl + 7

Ctrl + Shift + D
Execute
Read Access in
Workspace
Uncomment
Ctrl + U
Inspect
References in
Hierarchy
Ctrl + Shift + I
Resume
References in
Working Set
F8
Run Last Launched
Ctrl + F11
Navigate
Project Option
Select All
Back
Build All
Ctrl + B
Ctrl + A
Select Enclosing Element

Backward History
Alt + Left
Build Clean

Alt + Shift + Up
Select Next Element
Forward
Build Project
Alt + Shift + Right
Select Previous Element

Forward History
Alt + Right
Close Projec
Go to Line
Ctrl + L
Open Project

Alt + Shift + Left
Show Tooltip Description
Go to Matching
Bracket
Ctrl + Shift + P
Properties
F2
Text Editing
Copy Lines
Ctrl + Alt + Down
Delete Line
Ctrl + D
Delete Next Word
Ctrl + Delete
Page 3 of 4

Activity (2)

You've already reviewed this. Edit your review.
1 thousand reads
1 hundred reads

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->