Skip to content

Eclipse shortcuts keys

lufe089 edited this page Sep 1, 2017 · 1 revision

This page takes info from: https://dzone.com/articles/effective-eclipse-shortcut-key

ALT + Up/Down Arrow Move the row (or the entire selection) up or down. Very useful when rearranging code. You can even select more rows and move them all at once. Notice, that it will be always correctly indented.

CTRL+SHIFT+O Organize imports. This combination imports missing clasess and removes unused imports

Activate quick fix CTRL+1
It activates the quick fix. Imagine you create a class, which implements some interface. You will get an error, because the inherited methods are not yet implemented. While you are on line where the error occurs, press this combination to activate the quick fix. Now, select the "Add unimplemented methods" option. You can use the quick fix at every error you ever receive.

**Open type or open resource for searching files quickly CTRL + T -- CTRL + R ** Those commands are useful to find different files quickly without having to search through the tree and directory structure.
CTRL + T: "Open Type" allows open any class, interface, or other compiled module no matter where it is located. CTRL + R: "Open Resource" does the same thing for non-classes, etc (things like config files, images, etc).

Format code CTRL + SHIFT + F
Automatically format your source code. This option splits long lines, align braces, etc

List of shortcut keys CTRL + SHIFT + L
Shows you a list of your currently defined shortcut keys.