Eclipse Commonly Used Shortcuts - madhusudana30/AlternativeJPAForWebSphere GitHub Wiki
-
Shortcut Description
-
CTRL+S Save changes.
-
CTRL+M Maximize/Resize window.
-
CTRL+/ Toggle comment. (This will comment in one liner format)
-
CTRL+SHIFT+/ Insert block comment, remove it again with Ctrl+Shift+\.
-
CTRL+D Delete current line.
-
CTRL+SHIFT+DEL Delete from cursor till end of line.
-
ALT+SHIFT+R Refactoring. Rename variable, method signature in all occurences.
-
ALT+SHIFT+Z Wrap the select block of code into a block, e.g. try/catch.
-
CTRL+SHIFT+O Organize imports. When you press this magical combination, all your missing classes will be imported, and the unused imports will vanish.
-
SYSOUT+CTRL+SPACE Shortcut for system.out.println();
-
MAIN+CTRL+SPACE Shortcut for public static void main(String[] args) {
-
CTRL+SHIFT+F Format code.
-
CTRL+SPACE Content assist which proposes methods/member variables and more based on my typing. Start typing with a . and it will show the structure members.
-
CTRL+1 Show quick fix.
-
CTRL+F Search/Replace in current file.
-
CTRL+H Open search dialog for File or Text Search.
-
CTRL+SHIFT+R Search dialog for resources (open a class or data file). Will search in workspace only.
-
CTRL+SHIFT+T Open type dialog (mainly used for opening a class when location is not known). Contrary to CTRL+SHIFT+R, this will also search within jars.
-
F3 Jumps to variable declaration, method or class definition.
-
ALT+LEFT, ALT+RIGHT Navigate backward and forward while working on multiple files.
-
CTRL+T Opens method implementation from the Interface class. Other option is to hover on the method name holding CTRL and selecting “open implementation”
-
CTRL+ALT+H Open call hierarchy of the current method. Find out all methods/classes from where current method is being called.
-
CTRL+SHIFT+G Find usage/references in workspace.