Eclipse shortcuts for java

Here we will look for some important shortcut for Eclipse IDE.

Open Eclipse provided shortcut list

Ctrl + Shift +L

It will open the popup window that will contain complete list of shortcuts available in Eclipse IDE.


 

Search for Resources in Workspace

Ctrl + Shift + R

Open a window to search for Resource in workspace. Expressions(? = any character, * = any string) can be used to search resource.


 

Search for Type in Workspace

Ctrl + Shift + T

Open a window to search for Type in workspace. Pattern can be used to refine search.

Que: What is the difference between Type and Resource

            Type : Language specific files like Classes / Interface / Compiled Modules

             Resources : Non Class files like Images / JSP / Property fils etc.

 


 

Organize Import in Class File

Ctrl + Shift + O 

 It will organize import statement in java file. If there is any unused import in file then it will get removed & if there is any missing import statement then it will get added in file.


 

Show Proposals(Available Options)

Ctrl + Space

Proposals will get displayed with this short cut. There are different proposals available in eclipse all proposals will get displayed with same shortcut but by pressing space button again and again.

Type of Proposal(In order they appear)

  1. Default Proposal
  2. Template Proposal
  3. SWT Template proposal
  4. Basic Proposals
  5. JAXB Proposals
  6. JPA Proposals
  7. Java proposals

 


 

Run Java Application

Ctrl + Shift + X, J

This shortcut can be used to run any Java application. There are several other options available to run. To Run on server use R instead of J.To run Java Applet use A instead of J.


 

Debug Java Application

Ctrl + Shift + D, J

This shortcut can be used to debug any Java application. There are several other options available to debug. To Run on server use R instead of J.To run Java Applet use A instead of J.

 

2 Comments

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.