Sep 052011
 

A programmer uses the keyboard more often than the mouse, and when typing, a right click to select a function also costs much time and effectiveness.

No matter you’re an eclipse user or a new comer to Eclipse, the following list of shortkeys can help you to save much time.

Ctrl + Shift + O : to open Resource.

image thumb5 Use short keys to save your time with Eclipse

You can use this shortkey to open almost everything, and the good news is that you can use expression character like * or extension like .java or .html… eg: if I want to search for a Java file that contains “Test” in the file name, I can use the expression like the above: *Test*.java.

Ctrl + / : to comment a line, Ctrl + Shift + / to comment multiple lines
Ctrl + E : to open current editors, you can use expression here to search for file name.

image thumb6 Use short keys to save your time with Eclipse

Ctrl + O : to open Inherited Members of class.

image thumb7 Use short keys to save your time with Eclipse

Tips: you can also use expression to search and jump to methods or fields.

Ctrl + Shift + O: To organize Imports

Most of the time, Eclipse can automatically imports classes in other packages for you. But sometimes you need to import them manually. Use Ctrl + Shift + O can help you import unique class automatically and for classes that have the same name, it will popup a selector for you.

Continue reading »