Eclipse shortcuts
A lot of you guys is using Eclipse IDE in your everyday coding life. Do you use Eclipse shortcuts? If not, it’s time to start! You will save a lot of time and energy when you learn some of them. For us, these are the You-Must-Know Eclipse shortcuts.
Ctrl + Shift + O | Adds necessary and removes unnecessary imports from the Java source file. |
Ctrl + Space | Code completion like showing available methods for a given class instance. |
Ctrl + O | Shows an outline of the currently displayed class. |
Ctrl + T | Show the inheritance of a Java class. |
Ctrl + Shift + F | Auto-format source code. |
Ctrl + Shift + T | Opens the Type dialog where you will find all the available classes in the project CLASSPATH. | Ctrl + Shift + R | Opens the Resources dialog, like configuration XML files and other text files. |
Ctrl + Shift + G | Find all the references of a class in the Workspace. Remember to select the class name first :) |
Ctrl + Alt + Z | Wrap code in a try/catch block. | Alt + ← | Go to the previous place where the cursor was placed. |
Ctrl + Q | Go to the last edited line in a source file. | Ctrl + D | Delete line. |
Ctrl + F11 | Run last launched program. |
the five final tips i still didn’t know, thanks.
One Ring to rule them all, One Ring to find them,
One Ring to bring them all and in the darkness bind them.
Ctrl+Shift+L
and once again Ctrl+Shift+L
//Eclipse Kepler tested
It works! And this comment ends the discussion :P Thanks!