IntelliJ
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 this
menuCtrl + 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 + N
Class:LineNumber
- e.g.
StringUtils:1500
- You can filter search results by namespaces
- e.g.
Ctrl + Alt + Shift + N
- ->
String.contains
- ->
- e.g.
- Using
Ctrl + E
you can also quick move to other tabs- like
Database
,Maven
,Terminal
- like
- Autoformat the whole package
- Select package
- ->
Ctrl + Alt + L
- ->
- Select package
Refactor
tab- e.g.
Replace Constructor with Factory Method
Replace Inheritance with Delegation
Replace Method with Method Object
Encapsulate Fields
Type Migration
Convert to instance method
- e.g.