Jetbrains IntelliJ IDE
Productive IDE
Shortcuts
| Key | Description |
|---|
| Alt+Shift+F12 | Maximize Code Window |
| Ctrl+Ctrl | Run anything |
| Ctrl+Shift+r | Run current test method |
Navigation
| Key | Description |
|---|
| Ctrl+Tab | Open Switcher |
| Ctrl+e | Recent Files |
| Ctrl+Shift+e | Recent Locations |
| Ctrl+Alt+left | Navigate Back |
| Ctrl+Alt+right | Navigate Forward |
| Ctrl+b | Navigate to Declaration |
| Ctrl+Alt+b | Navigate to Implementation |
| Ctrl+Shift+t | Goto Test |
| Key | Description |
|---|
| Ctrl+n | Search for classes |
| Ctrl+Shift+n | Search for files |
| Ctrl+Shift+Alt+n | Search for symbols |
| Shift+Shift | Search for anything |
Refactoring
| Key | Description |
|---|
| Shift+F6 | Rename |
| Ctrl+F6 | Change Signature |
| Ctrl+Shift+m | Extract to method |
| Ctrl+Alt+c | Extract to constant |
| Ctrl+Alt+p | Extract to argument |
| Ctrl+Alt+v | Introduce variable |
| Alt+Delete | Safe delete |
Version Control
| Key | Description |
|---|
| Ctrl+M | Commit Message History |
Code Completion
Tab Completion
| Key | Expansion |
|---|
| sout | System.out.println(); |
Postfix Completion
| Key | Expansion |
|---|
| test.nn | if (test != null) { … } |
| test.null | if (test == null) { … } |
| booleanVar.if | if (booleanVar) { … } |
| “test”.sout | System.out.println(“test”); |
Debugging
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