Eclipse Shortcut Keys Every Programmer Should Know

As a Java programmer, we all use IDE(Integrated Development Editor) to develop the applications. There are many editors available for development of Java Applications which are listed below:

  • NetBeans
  • Eclipse IDE
  • Android Studio
  • BlueJ
  • IntelliJ IDEA Community Edition

Out of above listed IDE's Eclipse is most commonly used IDE in industry. While coding frequently we need to perform some common tasks like search file, open java file, open class file, comment block of code, move to previous method, search all references to the particular method. To search a keyword in a file you can Goto Search -> Select File or use some shortcut to open the search widget. Thanks to Eclipse community which comes with a lot of shortcuts that makes development easy. Let us discuss them one by one.

Important Eclipse Shortcuts

 Sno  Shortcut  Description
 1  CTRL+SHIFT+O Using this shortcut, you can organize your imports, i.e you can remove unused imports to any package or class or can import necessary imports for the java file. 
 CTRL+SHIFT+T  Using this shortcut, you can open type. This is very helpful shortcut as using this you can easily search any class file in jar.
 CTRL+SHIFT+R  This shortcut can be used to search any resource. This resource can be either java file, text file, xml file etc.
 CTRL+SHIFT+ /  This shortcut can be used to comment any block of code.
 CTRL +SHIFT+\  This shortcut can be used to uncomment any block of code.
 CTRL+SHIFT+F  This shortcut can be used to format source code.
 CTRL+SPACE  While coding we often need content assistance for example after typing str what if eclipse suggest contents like String, StringBuffer, StringBuilder etc. Yes, eclipse provide content assistance and you can use CTRL+SPACE for it.
 CTRL+L  Using this shortcut key you can goto any desired line number in source code.
 ALT+LEFT  Using this shortcut you can go to previous opened editor.
10 ALT+RIGHT Using this shortcut, you can go to next opened editor.
11 CTRL+H Using this shortcut, you can open the search dialog.
12 F3 This shortcut can be used to see declaration/definition of any method.
13 CTRL+PAGE UP This shortcut can be used to navigate to previous file opened in editor.
14 CTRL+PAGE DOWN This shortcut can be used to navigate to next file opened in editor.
15 Ctrl+M This shortcut can be used to minimize/maximize the active or editor.

 This article, you have learned various shortcuts available in Eclipse IDE.

Article tagged as
Author
Author: Amit Gupta
Published On: 18/10/2015
Last revised On: 13/11/2015
View all articles by Amit Gupta

Share this post

Comments

Comments
comments powered by Disqus

Navigation

Social Media