IntelliJ IDEA (macOS)

VCS / Local history

"VCS" quick popup

Control + V

All hotkeys for IntelliJ IDEA (macOS)

Editing
Smart code completion

Control + ↑   Shift + Space

Search and replace
Search everywhere

↑   Shift then ↑   Shift

Editing
Smart line split

⌘ Cmd + ⤶ Enter

Editing
Generate code

⌘ Cmd + N

Editing
Generate code

Control + ⤶ Enter

Editing
Parameter info (within method call arguments)

⌘ Cmd + P

Useful shortcuts
Extend selection

⌥ Option + ⌘ Cmd +

Useful shortcuts
Shrink selection

⌥ Option + ⌘ Cmd +

Navigation
Recent files popup

⌘ Cmd + E

Refactoring
Rename

↑   Shift + F6

General
Open corresponding tool window

⌘ Cmd + Num 0 - Num 9

General
Save all

⌘ Cmd + S

General
Synchronize

⌘ Cmd + ⌥ Option + Y

General
Toggle maximizing editor

⌘ Cmd + ↑   Shift + F12

General
Inspect current file with current profile

⌥ Option + ↑   Shift + I

General
Quick switch current scheme

Control + §

General
Quick switch current scheme

Control + `

General
Open Settings dialog

⌘ Cmd + ,

General
Open project structure dialog

⌘ Cmd + ;

General
Find action

⌘ Cmd + ↑   Shift + A

Debugging
Step over

F8

Debugging
Step into

F7

Debugging
Smart step into

↑   Shift + F7

Debugging
Smart step out

↑   Shift + F8

Debugging
Run to cursor

⌥ Option + F9

Debugging
Evaluate expression

⌥ Option + F8

Compile and run
Select configuration and run

⌘ Cmd + ⌥ Option + R

Debugging
Toggle breakpoint

⌘ Cmd + F8

Debugging
View breakpoints

⌘ Cmd + ↑   Shift + F8

Search and replace
Find

↑   Shift + F

Search and replace
Find next

⌘ Cmd + G

Search and replace
Find previous

⌘ Cmd + ↑   Shift + G

Compile and run
Run

⌘ Cmd + R

Search and replace
Find in path

⌘ Cmd + ↑   Shift + F

Compile and run
Run context configuration from editor

⌘ Cmd + ↑   Shift + R

Search and replace
Select next occurence

Ctrl + G

Search and replace
Select all occurences

Ctrl + ⌘ Cmd + G

Search and replace
Unselect occurence

Control + G

Editing
Basic code completion

Control + Space

Editing
Complete statement

⌘ Cmd + ↑   Shift + ⤶ Enter

Editing
Quick documentation lookup

Control + J

Editing
External doc

↑   Shift + F1

Editing
Brief info

⌘ Cmd + Mouse movement

Editing
Show descriptions of error at caret

⌘ Cmd + F1

Editing
Override methods

Control + O

Editing
Implement methods

Control + I

Editing
Surround with…

⌘ Cmd + ⌥ Option + T

Editing
Comment / uncomment with line comment

⌘ Cmd + /

Editing
Comment / uncomment with block comment

⌘ Cmd + ⌥ Option + /

Editing
Extend selection

⌥ Option +

Editing
Shrink selection

⌥ Option +

Editing
Context info

Control + ↑   Shift + Q

Editing
Show intention actions and quick-fixes

⌥ Option + ⤶ Enter

Editing
Reformat code

⌘ Cmd + ⌥ Option + L

Editing
Optimize imports

Control + ⌥ Option + O

Editing
Auto-indent line(s)

Control + ⌥ Option + I

Editing
Indent selected lines

⭾ Tab

Editing
Unindent selected lines

↑   Shift + ⭾ Tab

Editing
Cut current line to clipboard

⌘ Cmd + X

Editing
Copy current line to clipboard

⌘ Cmd + C

Editing
Paste from clipboard

⌘ Cmd + V

Editing
Paste from recent buffers

⌘ Cmd + ↑   Shift + V

Compile and run
Debug

⌘ Cmd + D

Refactoring
Safe delete

⌘ Cmd + Del

Editing
Smart line join

Control + ↑   Shift + J

Editing
Start new line

↑   Shift + ⤶ Enter

Editing
Toggle case for word at caret or selected block

⌘ Cmd + ↑   Shift + U

Editing
Select till code block end / start

⌘ Cmd + ↑   Shift + ]

Editing
Select till code block end / start

⌘ Cmd + ↑   Shift + [

Editing
Delete to word end

⌥ Option + ForwardDel

Editing
Delete to word start

⌥ Option + Del

Editing
Expand code block

⌘ Cmd + +

Editing
Collapse code block

⌘ Cmd + -

Editing
Expand all

⌘ Cmd + ↑   Shift + +

Editing
Collapse all

⌘ Cmd + ↑   Shift + -

Editing
Close active editor tab

⌘ Cmd + W

Refactoring
Copy

F5

Refactoring
Move

F6

VCS / Local history
Update project from VCS

⌘ Cmd + T

Refactoring
Change signature

⌘ Cmd + F6

Refactoring
Inline

⌘ Cmd + ⌥ Option + N

Refactoring
Extract method

⌘ Cmd + ⌥ Option + M

Refactoring
Extract variable

⌘ Cmd + ⌥ Option + V

Refactoring
Extract field

⌘ Cmd + ⌥ Option + F

Refactoring
Extract constant

⌘ Cmd + ⌥ Option + C

Refactoring
Extract parameter

⌘ Cmd + ⌥ Option + P

Navigation
Go to class

⌘ Cmd + O

Navigation
Go to file

⌘ Cmd + ↑   Shift + O

Navigation
Go to symbol

⌘ Cmd + ⌥ Option + O

Navigation
Go to previous / next editor tab

Control + ←  →

Navigation
Go back to previous tool window

F12

Navigation
Go to editor (from tool window)

Esc

Navigation
Hide active or last active window

↑   Shift + Esc

Navigation
Go to line

⌘ Cmd + L

Navigation
Navigate back/ forward

⌘ Cmd + ⌥ Option + ←  →

Navigation
Navigate to last edit location

⌘ Cmd + ↑   Shift + Del

Navigation
Select current file or symbol in any view

⌥ Option + F1

Navigation
Go to declaration

⌘ Cmd + B

Navigation
Go to declaration

⌘ Cmd + Mouse left click

Navigation
Go to implementation(s)

⌘ Cmd + ⌥ Option + B

Navigation
Open quick definition lookup

⌘ Cmd + Space

Navigation
Open quick definition lookup

⌘ Cmd + Y

Navigation
Go to type declaration

Control + ↑   Shift + B

Navigation
Go to super-method/ super-class

⌘ Cmd + U

Navigation
Go to previous /next method

Control + ↑  ↓

Navigation
Move to code block end

⌘ Cmd + ]

Navigation
Move to code block start

⌘ Cmd + [

Navigation
File structure popup

⌘ Cmd + F12

Navigation
Type hierarchy

Control + H

Navigation
Method hierarchy

⌘ Cmd + ↑   Shift + H

Navigation
Call hierarchy

⌘ Cmd + ⌥ Option + H

Navigation
Next highlighted error

F2

Navigation
Previous highlighted error

↑   Shift + F2

Navigation
Edit source

F4

Navigation
View source

⌘ Cmd +

Navigation
Show navigation bar

⌥ Option + Home

Navigation
Toggle bookmark

F3

Navigation
Toggle bookmark with mnemonic

⌥ Option + F3

Navigation
Go to numbered bookmark

Control + Num 0 - Num 9

Navigation
Show bookmarks

⌘ Cmd + F3

Compile and run
Make project

⌘ Cmd + F9

Compile and run
Compile selected file, package or module

⌘ Cmd + ↑   Shift + F9

Compile and run
Select configuration and debug

⌘ Cmd + ⌥ Option + D

Compile and run
Run context configuration from editor

⌘ Cmd + ↑   Shift + D

Usage search
Find usages

⌥ Option + F7

Usage search
Find usages in file

⌘ Cmd + F7

Usage search
Show usages

⌘ Cmd + ⌥ Option + F7

VCS / Local history
Commit project to VCS

⌘ Cmd + K

VCS / Local history
Push commits

⌘ Cmd + ↑   Shift + K

VCS / Local history
"VCS" quick popup

Control + V

Live Templates
Surround with Live Template

⌘ Cmd + ⌥ Option + J

Live Templates
Insert live template

⌘ Cmd + J