Eclipse Shortcut Keys

Ctrl + Shift + R : To find all resource files, including the config XML files from the workspace

Ctrl + Shift + T : To find a class in an application or from inside a jar

Ctrl + W : To close the current file

Ctrl + Shift + W : To close all the open files

Ctrl + Shift + X : Convert to uppercase

Ctrl + Shift + Y : Convert to lowercase

Ctrl + Shift + O : To organize imports

Ctrl + Shift + F : To format the code

Alt + Up/Down Arrow : Move lines to up/down

Alt + Left/Right Arrow : Jump forward/backward in history

Ctrl + Alt + H : View call hierarchy

F4 : View class hierarchy

Ctrl + F11 : Run program

F11 : Debug program

Ctrl + Click or F3 : Jump to class / method / variable

Ctrl + PageUp/PageDown : Change tabs

Ctrl + / : To add/remove a single line comment for the selected line

Ctrl + Shift + Enter : To add a blank line before the current line

Alt + Shift + M : Extract method

Alt + Shift + S, R : To generate Setters & Getters

Alt + Shift + S, S : To generate toString() method

Alt + Shift + S, O : To add a constructor with fields

Ctrl + 1 + Enter : To store method return value to a variable

Ctrl + D : To delete the current line

Ctrl + L : Jump to a specified line number

Ctrl + O : Display all methods of the current class, Pressing Ctrl + O again will display all the inherited methods

Ctrl + Shift + P : Go to the matching bracket

Alt + Shift + R : To rename

Alt + Shift + T : To open the context-sensitive refactoring menu

Alt + Shift + Z : To surround a block with try and catch

Ctrl + Shift + / : To comment selected lines with a block comment

Ctrl + Shift + \ : To uncomment selected lines with a block comment

Ctrl + Q : To go to the last edited position