Jetbrains IntelliJ IDE

Productive IDE

Shortcuts

KeyDescription
Alt+Shift+F12Maximize Code Window
Ctrl+CtrlRun anything
Ctrl+Shift+rRun current test method
KeyDescription
Ctrl+TabOpen Switcher
Ctrl+eRecent Files
Ctrl+Shift+eRecent Locations
Ctrl+Alt+leftNavigate Back
Ctrl+Alt+rightNavigate Forward
Ctrl+bNavigate to Declaration
Ctrl+Alt+bNavigate to Implementation
Ctrl+Shift+tGoto Test
KeyDescription
Ctrl+nSearch for classes
Ctrl+Shift+nSearch for files
Ctrl+Shift+Alt+nSearch for symbols
Shift+ShiftSearch for anything

Refactoring

KeyDescription
Shift+F6Rename
Ctrl+F6Change Signature
Ctrl+Shift+mExtract to method
Ctrl+Alt+cExtract to constant
Ctrl+Alt+pExtract to argument
Ctrl+Alt+vIntroduce variable
Alt+DeleteSafe delete

Version Control

KeyDescription
Ctrl+MCommit Message History

Code Completion

Tab Completion

KeyExpansion
soutSystem.out.println();

Postfix Completion

KeyExpansion
test.nnif (test != null) { … }
test.nullif (test == null) { … }
booleanVar.ifif (booleanVar) { … }
“test”.soutSystem.out.println(“test”);

Debugging

source

Evaluating Expressions

You can actually, while debugging, execute code on a variable.

You can also add a watch expression to the Variables window, which is a code snipped that is reevaluated on every frame.

Checking Values

When debugging, just double click on a method and see its return value.

Conditional Breakpoints