Eclipse Shorcuts

Shortcuts are among the effective ways to increase your speed and efficiency .Eclipse apart from standard shortcuts like CTRL+A provides many other shortcuts using which you can increase your productivity.Below I’m listing the 10 essential eclipse shortcuts which every eclipse user should know to work more effectively.

1.CTRL+SHIFT+O
Organize imports.Press this combination to import all missing classes which is needed to run your code.Also this will remove all unused classes.

2.CTRL+D
Delete a row.No need highlight the entire text and press delete or use mouse , just press CTRL+D and you are done.

3.CTRL+SHIFT+R
One of the most effective eclipse shortcut opens a search dialog to search form recently used resources.U can any patter like Foo* to search all files whose name starts with foo prefix.eclipse shortcut ctrl+shift+r

 

4.CTRL+H
Search .Use this eclipse shortcut to search any class ,method ,string within text .And a lot of other things.

5.F3
Another important eclipse shortcut.Highlight an object and press F3 to go to the object declaration.Select a class name and press F3 to view class definition.

6.ALT+Left/Right arrow
Used for navigating the code.Lets say you are in class A and there is an object of type B in it you pressed F3 on that and moved to class B, now you want to go to class A again simply pressĀ ALT+Right arrow if you again want to go to class B press ALT+Left Arrow.

7.CTRL+SHIFT+\ or /
Add and remove block comments around a piece of code.

8.CTRL+F8
Move between perspectives.

9.CTRL+SHIFT+F
format ,use this eclipse shortcut to format your ugly looking code .

10.CTRL+1
Quickfix , use this eclipse shortcut to see quickfixes available for any errors or warnings.

Though there are many more shortcuts available in eclipse but I mentioned only those which I think are a kind of must know , if u think I forgot something important let me know I will add it.

One thought on “Eclipse Shorcuts

Leave a Reply to kumpa11random Cancel reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>