Top 10 Eclipse Short cut keys

0
1158

Eclipse Short cut keys are the combination of keys which can be used in Eclipse IDE for different purposes. Short cut keys not only saves your time in development, they improve your over all efficiency as well. This post will talk about most commonly used Eclipse Short cut keys which every developer must know. I am limiting this post to TOP 10 Eclipse Short cut keys as these are the ones I found most useful always.

1)[symple_highlight color=”blue”] Ctrl + Shift + G[/symple_highlight]

This short cut is used to check the references of any method or variable. Select the particular method or variable name and press the key combination. That will show you all the files where method/variable has been used.

2) [symple_highlight color=”blue”]Ctrl + Shift + O[/symple_highlight]

This is a simple one used to organize the imports. It would simply add the missing imports and even remove the ones not required.

3) [symple_highlight color=”blue”]Ctrl + D[/symple_highlight]

To delete the line. This comes very handy when you need to remove extra white lines or extra piece of code line by line.

4)[symple_highlight color=”blue”] Ctrl + Space[/symple_highlight]

Used for code completion and most widely used.

5)[symple_highlight color=”blue”] Ctrl + I[/symple_highlight]

To work on indentation of the code. Select the piece of code and use this combination to correctly indent the code.

6) [symple_highlight color=”blue”]Ctrl + O[/symple_highlight]

This shows the list of methods in a class file and then you can start typing the method’s initial letters to find the exact one you need. This is very useful when you have a huge class having large number of methods in it. You can quickly scroll through the list and see where you need to go.

7) [symple_highlight color=”blue”]Ctrl + /[/symple_highlight]

To comment and un-comment a piece of code. Simply select the code and use this short cut to comment or un-comment the code.

8) [symple_highlight color=”blue”]Ctrl + H[/symple_highlight]

To find any String in the workspace. A dialog box opens where you can type in what you want to find and even limit your search to a particular file type.

9) [symple_highlight color=”blue”]Ctrl + Shift + R[/symple_highlight]

To search any file in workspace just press this key combination and it opens a dialog box where you can start typing the class name and it shows the classes starting with those letters. This would even accept the wild card characters. You can then click on the file you want to open.

10) [symple_highlight color=”blue”]Ctrl + L[/symple_highlight]

Times you just need to go to a particular line number in the code and then you find it so quick to use this short cut and be there in no time.

Eclipse
Eclipse

How to change the keys combination for any short cut keys:

If for some reason any of these short cuts have been taken by something else or you do not like them you have the option to change them. To do so, go to Window > Preferences > General > Keys and there you would see all the short cut key combinations which you can change to fit for purpose.

What are the short cuts you use mostly? Write at least one of them in the comments section below.

Previous articleString Intern and Memory Usage
Next articleHow to check if String contains only numeric in Java
I have spent almost 10 years playing around Java and related technologies. I love to write on different topics and would be very much willing to hear back your feedback/suggestions on them. This site is a medium to share my knowledge with the Java folks and grow further. My other interests include traveling, driving, swimming and dance. But yes, my web site has become my passion over the time :) I live in Scotland and travel to India often, my roots being there.

NO COMMENTS

LEAVE A REPLY