Hotkeys and shortcuts for IntelliJ IDEA (macOS)

(Total 132)

Control + ↑   Shift + Space
Editing
Smart code completion
↑   Shift then ↑   Shift
Search and replace
Search everywhere
⌘ Cmd + ⤶ Enter
Editing
Smart line split
⌘ Cmd + N
Editing
Generate code
Control + ⤶ Enter
Editing
Generate code
⌘ Cmd + P
Editing
Parameter info (within method call arguments)
⌥ Option + ⌘ Cmd +
Useful shortcuts
Extend selection
⌥ Option + ⌘ Cmd +
Useful shortcuts
Shrink selection
⌘ Cmd + E
Navigation
Recent files popup
↑   Shift + F6
Refactoring
Rename
⌘ Cmd + Num 0 - Num 9
General
Open corresponding tool window
⌘ Cmd + S
General
Save all
⌘ Cmd + ⌥ Option + Y
General
Synchronize
⌘ Cmd + ↑   Shift + F12
General
Toggle maximizing editor
⌥ Option + ↑   Shift + I
General
Inspect current file with current profile
Control + §
General
Quick switch current scheme
Control + `
General
Quick switch current scheme
⌘ Cmd + ,
General
Open Settings dialog
⌘ Cmd + ;
General
Open project structure dialog
⌘ Cmd + ↑   Shift + A
General
Find action
F8
Debugging
Step over
F7
Debugging
Step into
↑   Shift + F7
Debugging
Smart step into
↑   Shift + F8
Debugging
Smart step out
⌥ Option + F9
Debugging
Run to cursor
⌥ Option + F8
Debugging
Evaluate expression
⌘ Cmd + ⌥ Option + R
Compile and run
Select configuration and run
⌘ Cmd + F8
Debugging
Toggle breakpoint
⌘ Cmd + ↑   Shift + F8
Debugging
View breakpoints
↑   Shift + F
Search and replace
Find
⌘ Cmd + G
Search and replace
Find next
⌘ Cmd + ↑   Shift + G
Search and replace
Find previous
⌘ Cmd + R
Compile and run
Run
⌘ Cmd + ↑   Shift + F
Search and replace
Find in path
⌘ Cmd + ↑   Shift + R
Compile and run
Run context configuration from editor
Ctrl + G
Search and replace
Select next occurence
Ctrl + ⌘ Cmd + G
Search and replace
Select all occurences
Control + G
Search and replace
Unselect occurence
Control + Space
Editing
Basic code completion
⌘ Cmd + ↑   Shift + ⤶ Enter
Editing
Complete statement
Control + J
Editing
Quick documentation lookup
↑   Shift + F1
Editing
External doc
⌘ Cmd + Mouse movement
Editing
Brief info
⌘ Cmd + F1
Editing
Show descriptions of error at caret
Control + O
Editing
Override methods
Control + I
Editing
Implement methods
⌘ Cmd + ⌥ Option + T
Editing
Surround with…
⌘ Cmd + /
Editing
Comment / uncomment with line comment
⌘ Cmd + ⌥ Option + /
Editing
Comment / uncomment with block comment
⌥ Option +
Editing
Extend selection
⌥ Option +
Editing
Shrink selection
Control + ↑   Shift + Q
Editing
Context info
⌥ Option + ⤶ Enter
Editing
Show intention actions and quick-fixes
⌘ Cmd + ⌥ Option + L
Editing
Reformat code
Control + ⌥ Option + O
Editing
Optimize imports
Control + ⌥ Option + I
Editing
Auto-indent line(s)
⭾ Tab
Editing
Indent selected lines
↑   Shift + ⭾ Tab
Editing
Unindent selected lines
⌘ Cmd + X
Editing
Cut current line to clipboard
⌘ Cmd + C
Editing
Copy current line to clipboard
⌘ Cmd + V
Editing
Paste from clipboard
⌘ Cmd + ↑   Shift + V
Editing
Paste from recent buffers
⌘ Cmd + D
Compile and run
Debug
⌘ Cmd + Del
Refactoring
Safe delete
Control + ↑   Shift + J
Editing
Smart line join
↑   Shift + ⤶ Enter
Editing
Start new line
⌘ Cmd + ↑   Shift + U
Editing
Toggle case for word at caret or selected block
⌘ Cmd + ↑   Shift + ]
Editing
Select till code block end / start
⌘ Cmd + ↑   Shift + [
Editing
Select till code block end / start
⌥ Option + ForwardDel
Editing
Delete to word end
⌥ Option + Del
Editing
Delete to word start
⌘ Cmd + +
Editing
Expand code block
⌘ Cmd + -
Editing
Collapse code block
⌘ Cmd + ↑   Shift + +
Editing
Expand all
⌘ Cmd + ↑   Shift + -
Editing
Collapse all
⌘ Cmd + W
Editing
Close active editor tab
F5
Refactoring
Copy
F6
Refactoring
Move
⌘ Cmd + T
VCS / Local history
Update project from VCS
⌘ Cmd + F6
Refactoring
Change signature
⌘ Cmd + ⌥ Option + N
Refactoring
Inline
⌘ Cmd + ⌥ Option + M
Refactoring
Extract method
⌘ Cmd + ⌥ Option + V
Refactoring
Extract variable
⌘ Cmd + ⌥ Option + F
Refactoring
Extract field
⌘ Cmd + ⌥ Option + C
Refactoring
Extract constant
⌘ Cmd + ⌥ Option + P
Refactoring
Extract parameter
⌘ Cmd + O
Navigation
Go to class
⌘ Cmd + ↑   Shift + O
Navigation
Go to file
⌘ Cmd + ⌥ Option + O
Navigation
Go to symbol
Control + ←  →
Navigation
Go to previous / next editor tab
F12
Navigation
Go back to previous tool window
Esc
Navigation
Go to editor (from tool window)
↑   Shift + Esc
Navigation
Hide active or last active window
⌘ Cmd + L
Navigation
Go to line
⌘ Cmd + ⌥ Option + ←  →
Navigation
Navigate back/ forward
⌘ Cmd + ↑   Shift + Del
Navigation
Navigate to last edit location
⌥ Option + F1
Navigation
Select current file or symbol in any view
⌘ Cmd + B
Navigation
Go to declaration
⌘ Cmd + Mouse left click
Navigation
Go to declaration
⌘ Cmd + ⌥ Option + B
Navigation
Go to implementation(s)
⌘ Cmd + Space
Navigation
Open quick definition lookup
⌘ Cmd + Y
Navigation
Open quick definition lookup
Control + ↑   Shift + B
Navigation
Go to type declaration
⌘ Cmd + U
Navigation
Go to super-method/ super-class
Control + ↑  ↓
Navigation
Go to previous /next method
⌘ Cmd + ]
Navigation
Move to code block end
⌘ Cmd + [
Navigation
Move to code block start
⌘ Cmd + F12
Navigation
File structure popup
Control + H
Navigation
Type hierarchy
⌘ Cmd + ↑   Shift + H
Navigation
Method hierarchy
⌘ Cmd + ⌥ Option + H
Navigation
Call hierarchy
F2
Navigation
Next highlighted error
↑   Shift + F2
Navigation
Previous highlighted error
F4
Navigation
Edit source
⌘ Cmd +
Navigation
View source
⌥ Option + Home
Navigation
Show navigation bar
F3
Navigation
Toggle bookmark
⌥ Option + F3
Navigation
Toggle bookmark with mnemonic
Control + Num 0 - Num 9
Navigation
Go to numbered bookmark
⌘ Cmd + F3
Navigation
Show bookmarks
⌘ Cmd + F9
Compile and run
Make project
⌘ Cmd + ↑   Shift + F9
Compile and run
Compile selected file, package or module
⌘ Cmd + ⌥ Option + D
Compile and run
Select configuration and debug
⌘ Cmd + ↑   Shift + D
Compile and run
Run context configuration from editor
⌥ Option + F7
Usage search
Find usages
⌘ Cmd + F7
Usage search
Find usages in file
⌘ Cmd + ⌥ Option + F7
Usage search
Show usages
⌘ Cmd + K
VCS / Local history
Commit project to VCS
⌘ Cmd + ↑   Shift + K
VCS / Local history
Push commits
Control + V
VCS / Local history
"VCS" quick popup
⌘ Cmd + ⌥ Option + J
Live Templates
Surround with Live Template
⌘ Cmd + J
Live Templates
Insert live template