IntelliJ IDEA
IntelliJ IDEA
Shortcuts, configurations and everything helpful when working with IntelliJ IDEA IDE.
Shortcuts
- Go to next Error
F2
- Go to previous/next method
Alt + Up/Down
- Clipboard manager
Ctrl + Shift + V
- Windows Clipboard manager
Windows + V
- File structure (even non-java files!)
Ctrl + F12
- Surround with
Ctrl + Alt + T- e.g.
if-else,try-catch-finally,synchronized,iterate,Runnable - You can also configure your own
Live Templates
- e.g.
Refactor thismenuCtrl + Alt + Shift + T- e.g.
Rename,Change signature,Extract method,Inline method
- e.g.
- Compare files
- Select files
Ctrl + D
- Select files
- Show Implementation Pop-Up
Ctrl + Shift + I
Tricks / Features
- Find shortcut
File->Settings->Keymap- ->
Find actions by shortcut
- ->
- Jump to File with Line Number
Ctrl + NClass:LineNumber- e.g.
StringUtils:1500
- You can filter search results by namespaces
- e.g.
Ctrl + Alt + Shift + N- ->
String.contains
- ->
- e.g.
- Using
Ctrl + Eyou can also quick move to other tabs- like
Database,Maven,Terminal
- like
- Autoformat the whole package
- Select package
- ->
Ctrl + Alt + L
- ->
- Select package
Refactortab- e.g.
Replace Constructor with Factory MethodReplace Inheritance with DelegationReplace Method with Method ObjectEncapsulate FieldsType MigrationConvert to instance method
- e.g.