by January 30, 2013 0 comments



1) Ctrl + 3

Function: Usually coders have trouble finding files in a long list of projects, and it can be time-consuming to find a file. This shortcut brings up the quick access box, that brings up files, views and commands as you are searching for them. Instead of drilling down in the explorer, just search for it!


2) Ctrl + Shift + G

Function: Finds references to a variable throughout the workspace.


3) Ctrl + F8

Function: Shift between perspectives (Java, Debug, DDMS) quickly


4) Ctrl + F11

Function: Run last launched application.


5) Ctrl + Space

Function: If you forget a function,variable or class name, just type a couple of letters and hit this shortcut to autocomplete with suggestions. Even generates conditional statements after matching with starting words.


6) Ctrl + O

Function: Displays all the methods and variables and methods available in the current class selected.


7) Ctrl + Shift + O

Function: Organize imports. This comes very handy when you suddenly have to pull up external classes and functions (such as the Math class) and Java will throw a syntax error. With this shortcut, the missing packages will automatically be imported.


8) Ctrl + Shift + F

Function: This shortcut automatically formats your code, according to predefined formatting rules set in the IDE. This is a boon for all the messy programmers out there who need their code to be indented properly!


9) Ctrl + Shift + P

Function: Finds the matching bracket for the current body of code. Very useful when figuring out missing bracket syntax issues.


10) Ctrl + PgUp/PgDn

Function: Toggles between editor views, much faster to switch between different classes user is working on.


11) Alt + Shift + Z

Function: Surround a block of code with a try/catch clause.


12) Alt + Shift + R

Function: Rename any variable,method or class and Eclipse automatically renames all references.


13) Alt + Shift + L

Function: Highlight an expression commonly used in your program and extract it as a variable- this will make your code cleaner.


14) Ctrl + 1

Function: Quickfix. Wherever Eclipse shows an error, this shortcut can be used to quickly solve the problem with one of the suggestions shown.


15) Alt + Shift + T

Function: Opens the quick refactoring menu. Can choose from a variety of refactorings to make the code cleaner and more efficient.


16) Ctrl + Shift + T

Function: Open/Search for types


17) Ctrl + Q

Function: Position the cursor back at the last changed location in the editor.


18) Alt + Shift + N

Function: Open up create menu directly to choose a new class/project.


19) F4 while selecting variable

Function: Show type hierarchy.


20) Ctrl + 2,L or F

Function:Assign statement/expression to a new local variable or field.


Are there any other keyboard shortcuts that you find essential in Eclipse? Write to us at pcquest@cybermedia.co.in.

No Comments so far

Jump into a conversation

No Comments Yet!

You can be the one to start a conversation.

<