§ Ctrl +
Space : hitting Ctrl + Space when you are in the middle of
typing will show you all members and methods that begin with
your text.
§
Ctrl + 1 : If you have an error
in a line, Ctrl + 1 will show you potential options to fix it, like
importing a class, or adding an argument to a method or fixing the method
signature
§ Ctrl +
Shift + R : Shows the Open Resource dialog. Type to filter, and jump
directly between classes. I love this shortcut, and use and abuse it!
§ Ctrl +
Shift + O : Organizes Imports, and gets rid of unused imports.
§
Ctrl + O : Shows the methods
and properties of a class.
§ Ctrl +
T : Opens the Type Heirarchy. Shows all super classes as
well as sub classes / implementing types in your class path.
§ Ctrl +
/ : Comment / Uncomment code. Single or multiple lines, depending
on what you have selected.
§ Alt +
Shift + R : It renames anything from variables to methods to even
classes, renaming the class files if necessary.
§
Alt + Shift + M :
Super useful method to break up a larger method into smaller chunks.
§ Alt +
Shift + Up / Down : If you hit up, it selects the next biggest code block,
down selects the next smallest.
§
Alt + Shift + T :
Brings up the Refactor menu
§
Alt + Shift + S :
Shows the Source menu. This includes menu options like Comment related, and the
ever useful Override / Implement Methods, Generate Getters and Setters, and
much more.
§
Alt + Shift + X :
Pulls up the Run menu, and shows what key you have to press to run a particular
type.
§
Alt + Up / Down :
Moves a block of lines up or down.
§
Ctrl + D : deletes
the current line the cursor is on.
§
Ctrl + L : Jump to a Line
number
§
Ctrl + Shift + T :
Display available types.
§
Alt + Shift + Up / Down :
Duplicate selected lines above or below.
§
Ctrl + Shift + L :
Show the list of shortcuts.
No comments:
Post a Comment