By Using shortcuts key make a developer more productive. Eclipse provides keyboard shortcuts for the common actions. Using shortcuts is usually preferable as you can perform actions much faster.
FILE NAVIGATION – ECLIPSE SHORTCUTS
CTRL+SHIFT+R – Open a resource. You need not know the path and just part of the file name is enough.
CTRL +E – Open a file (editor) from within the list of all open files.
CTRL +PAGE UP or PAGE DOWN – Navigate to previous or next file from within the list of all open files.
ALT +Left Arrow or ALT+Right Arrow – Go to previous or next edit positions from editor history list.
Java Editing-
CTRL+SPACE – Type assist
CTRL+SHIFT+F – Format code.
CTRL+O – List all methods of the class and again CTRL O lists including inherited methods.
CTRL +SHIFT +O – Organize imports.
CTRL+SHIFT +U – Find reference in file.
CTRL+ / – Comment a line.
F3 – Go to the declaration of the variable.
F4 – Show type hierarchy of on a class.
CTRL +T – Show inheritance tree of current token.
SHIFT +F2 – Show Javadoc for current element.
ALT+ SHIFT +Z – Enclose block in try-catch.
GENERAL EDITING SHORTCUTS
F12 – Focus on current editor.
CTRL +L – Go to line number.
CTRL +D – Delete a line.
CTRL+<- or -> – Move one element left or
Search from an editor
Ctrl + . Go to the next problem / error
Ctrl + , Go to the previous problem / error
F4 on a variable Show type hierarchy
Ctrl + J Incremental search without popup dialog, just starting typing to search. Press Ctrl + J to find the next match
Ctrl + K Searches the selected text or if nothing is selected the last search from the Find dialog.
Ctrl + Shift + G In the Java editor, s\earch for references in the workspace
Ctrl + Shift + P Select the matching bracket. Cursor needs to be placed before or after a bracket.
Running programs
Ctrl + F11 Run last launched
Alt + Shift + X, J Run current selected class as Java application
Create new lines
Shift + Enter Adds a blank line below the current line and moves the cursor to the new line. The difference between a regular enter is that the currently line is unchanged, independently of the position of the cursor.
Ctrl+Shift+Enter Same as Shift + Enter but above
Variable assignment
Ctrl + 2, L Assign statement to new local variable
Ctrl + 2, F Assign statement to new field
Re-factoring
Alt + Shift + R Rename
Ctrl + 2, R Rename locally (in file), faster than Alt + Shift + R
Alt + Shift + T Opens the context-sensitive re-factoring menu, e.g. displays
Must known shortcuts
Ctrl + S Saves current editor
Ctrl + 1 Quickfix; shows potential fixes for warnings, errors or shows possible actions
Ctrl + Space Content assist/ code completion
Ctrl + Q Goes to the last edited position
Ctrl+ D Deletes current line in the editor
Ctrl + Shift + O Adjusts the imports statements in the current Java source file
Ctrl + 2, L or F Assign statement to new local variable or field
Ctrl + Shift + T Open Type Dialog
Ctrl + O Shows quick outline of a class
Ctrl + F11 Run last launched application
@References-
Eclipse Official site
FILE NAVIGATION – ECLIPSE SHORTCUTS
CTRL+SHIFT+R – Open a resource. You need not know the path and just part of the file name is enough.
CTRL +E – Open a file (editor) from within the list of all open files.
CTRL +PAGE UP or PAGE DOWN – Navigate to previous or next file from within the list of all open files.
ALT +Left Arrow or ALT+Right Arrow – Go to previous or next edit positions from editor history list.
Java Editing-
CTRL+SPACE – Type assist
CTRL+SHIFT+F – Format code.
CTRL+O – List all methods of the class and again CTRL O lists including inherited methods.
CTRL +SHIFT +O – Organize imports.
CTRL+SHIFT +U – Find reference in file.
CTRL+ / – Comment a line.
F3 – Go to the declaration of the variable.
F4 – Show type hierarchy of on a class.
CTRL +T – Show inheritance tree of current token.
SHIFT +F2 – Show Javadoc for current element.
ALT+ SHIFT +Z – Enclose block in try-catch.
GENERAL EDITING SHORTCUTS
F12 – Focus on current editor.
CTRL +L – Go to line number.
CTRL +D – Delete a line.
CTRL+<- or -> – Move one element left or
Search from an editor
Ctrl + . Go to the next problem / error
Ctrl + , Go to the previous problem / error
F4 on a variable Show type hierarchy
Ctrl + J Incremental search without popup dialog, just starting typing to search. Press Ctrl + J to find the next match
Ctrl + K Searches the selected text or if nothing is selected the last search from the Find dialog.
Ctrl + Shift + G In the Java editor, s\earch for references in the workspace
Ctrl + Shift + P Select the matching bracket. Cursor needs to be placed before or after a bracket.
Running programs
Ctrl + F11 Run last launched
Alt + Shift + X, J Run current selected class as Java application
Create new lines
Shift + Enter Adds a blank line below the current line and moves the cursor to the new line. The difference between a regular enter is that the currently line is unchanged, independently of the position of the cursor.
Ctrl+Shift+Enter Same as Shift + Enter but above
Variable assignment
Ctrl + 2, L Assign statement to new local variable
Ctrl + 2, F Assign statement to new field
Re-factoring
Alt + Shift + R Rename
Ctrl + 2, R Rename locally (in file), faster than Alt + Shift + R
Alt + Shift + T Opens the context-sensitive re-factoring menu, e.g. displays
Must known shortcuts
Ctrl + S Saves current editor
Ctrl + 1 Quickfix; shows potential fixes for warnings, errors or shows possible actions
Ctrl + Space Content assist/ code completion
Ctrl + Q Goes to the last edited position
Ctrl+ D Deletes current line in the editor
Ctrl + Shift + O Adjusts the imports statements in the current Java source file
Ctrl + 2, L or F Assign statement to new local variable or field
Ctrl + Shift + T Open Type Dialog
Ctrl + O Shows quick outline of a class
Ctrl + F11 Run last launched application
@References-
Eclipse Official site