IntelliJ IDEA Keyboard Shortcuts for Mac

Keyboard shortcuts for IntelliJ IDEA on Mac. Covers editing, caret navigation, code completion, refactoring, debugging, and version control.
Key label style

Build projects

New in This Directory
Ctrl+Opt+N
Build Project
Cmd+F9
Rebuild
Cmd+Shift+F9

Basic editing

Cut
Cmd+X
Copy
Cmd+C
Paste
Cmd+V
Paste as Plain Text
Cmd+Opt+Shift+V
Paste from History...
Cmd+Shift+V
Copy Paths
Cmd+Shift+C
Copy Reference
Cmd+Opt+Shift+C
Save All
Cmd+S
Undo
Cmd+Z
Redo
Cmd+Shift+Z
Indent Selection
Tab
Unindent Line or Selection
Shift+Tab
Auto-Indent Lines
Ctrl+Opt+I
Start New Line
Shift+Return
Start New Line Before Current
Cmd+Opt+Return
Delete Line
Cmd+Del
Join Lines
Ctrl+Shift+J
Duplicate Line or Selection
Cmd+D
Toggle Case
Cmd+Shift+U
Scratch File
Cmd+Shift+N
Open Source in New Window
Shift+F4
Increase Font Size in All Editors
Ctrl+Shift+.
Decrease Font Size in All Editors
Ctrl+Shift+,

Caret navigation

Move Caret to Previous Word
Opt+Left
Move Caret to Next Word
Opt+Right
Move Caret to Line Start
Cmd+Left
Move Caret to Line End
Cmd+Right
Move Caret to Matching Brace
Ctrl+M
Move Caret to Code Block Start
Cmd+Opt+[
Move Caret to Code Block End
Cmd+Opt+]
Next Method
Ctrl+Shift+Down
Previous Method
Ctrl+Shift+Up
Move Caret to Page Top
Cmd+Pg Up
Move Caret to Page Bottom
Cmd+Pg Dn
Page Up
Pg Up
Page Down
Pg Dn
Move Caret to Text Start
Cmd+Home
Move Caret to Text End
Cmd+End

Select text

Select All
Cmd+A
Left with Selection
Shift+Left
Right with Selection
Shift+Right
Move Caret to Previous Word with Selection
Opt+Shift+Left
Move Caret to Next Word with Selection
Opt+Shift+Right
Move Caret to Line Start with Selection
Cmd+Shift+Left
Move Caret to Line End with Selection
Cmd+Shift+Right
Up with Selection
Shift+Up
Down with Selection
Shift+Down
Move Caret to Code Block Start with Selection
Cmd+Opt+Shift+[
Move Caret to Code Block End with Selection
Cmd+Opt+Shift+]
Move Caret to Page Top with Selection
Cmd+Shift+Pg Up
Move Caret to Page Bottom with Selection
Cmd+Shift+Pg Dn
Page Up with Selection
Shift+Pg Up
Page Down with Selection
Shift+Pg Dn
Move Caret to Text Start with Selection
Cmd+Shift+Home
Move Caret to Text End with Selection
Cmd+Shift+End
Extend Selection
Opt+Up
Shrink Selection
Opt+Down

Code folding

Expand
Cmd+Num +
Collapse
Cmd+Num -
Expand Recursively
Cmd+Opt+Num +
Collapse Recursively
Cmd+Opt+Num -
Expand All
Cmd+Shift+Num +
Collapse All
Cmd+Shift+Num -
Fold Selection
Cmd+.

Multiple carets and selection ranges

Add/Remove Caret
Opt+Shift+Click
Toggle Column Selection Mode
Cmd+Shift+8
Clone Caret Above
Double Option + Up
Clone Caret Below
Double Option + Down
Add Caret to Each Line in Selection
Opt+Shift+G
Add Selection for Next Occurrence
Ctrl+G
Select All Occurrences
Cmd+Ctrl+G
Deselect Last Occurrence
Ctrl+Shift+G
Create Rectangular Selection
Opt+Shift+Middle-click
Drag to Create Rectangular Selection
Opt+Click
Drag to Create Multiple Rectangular Selections
Cmd+Opt+Shift+Click

Coding assistance

Show Intention Actions
Opt+Return
Basic Completion
Ctrl+Space
Type-Matching Completion
Ctrl+Shift+Space
Second Basic Completion
Ctrl+Opt+Space
Complete Current Statement
Cmd+Shift+Return
Reformat Code
Cmd+Opt+L
Parameter Info
Cmd+P
Quick Documentation
F1
Move Statement Up
Cmd+Shift+Up
Move Statement Down
Cmd+Shift+Down
Move Element Left
Cmd+Opt+Shift+Left
Move Statement Right
Cmd+Opt+Shift+Right
Move Line Up
Opt+Shift+Up
Move Line Down
Opt+Shift+Down
Comment with Line Comment
Cmd+/
Comment with Block Comment
Cmd+Opt+/
Surround With...
Cmd+Opt+T
Generate...
Cmd+N

Context navigation

Next Method
Ctrl+Shift+Down
Previous Method
Ctrl+Shift+Up
Go to Line/Column...
Cmd+L
Switcher
Ctrl+Tab
Select In...
Opt+F1
Recent Files
Cmd+E
Recent Changes
Opt+Shift+C
Last Edit Location
Cmd+Shift+Del
Back
Cmd+[
Forward
Cmd+]
Select Next Tab
Cmd+Shift+]
Select Previous Tab
Cmd+Shift+[
Toggle Anonymous Bookmark
F3
Toggle Bookmark with Digit
Ctrl+Shift+<0-9>
Toggle Bookmark with Mnemonic
Opt+F3
Show All Bookmarks
Cmd+F3
Go to Bookmark with Digit
Ctrl+<0-9>
Show Mnemonic Bookmarks
Cmd+Opt+F3
Show Bookmarks window
Cmd+2
Show Structure window
Cmd+7
Show Find window
Cmd+3
Next Occurrence
Cmd+Opt+Down
Previous Occurrence
Cmd+Opt+Up

Find everything

Search Everywhere
Double Shift
Find...
Cmd+F
Find Next / Move to Next Occurrence
Cmd+G
Find Previous / Move to Previous Occurrence
Cmd+Shift+G
Replace...
Cmd+R
Find in Files...
Cmd+Shift+F
Replace in Files...
Cmd+Shift+R
Go to File...
Cmd+Shift+O
File Structure
Cmd+F12
Go to Symbol...
Cmd+Opt+O
Find Action...
Cmd+Shift+A

Code analysis

Show Intention Actions
Opt+Return
Error Description
Cmd+F1
Next Highlighted Error
F2
Previous Highlighted Error
Shift+F2
Run Inspection by Name...
Cmd+Opt+Shift+I
Show Problems window
Cmd+6

Run and debug

Run Anything
Double Ctrl
Run context configuration
Ctrl+R
Run...
Ctrl+Opt+R
Debug context configuration
Ctrl+D
Debug...
Ctrl+Opt+D
Attach to Process...
Opt+Shift+F5
Stop
Cmd+F2
Resume Program
Cmd+Opt+R
Stop Background Processes...
Cmd+Shift+F2
Step Over
F8
Force Step Over
Opt+Shift+F8
Step Into
F7
Smart Step Into
Shift+F7
Force Step Into
Opt+Shift+F7
Step Out
Shift+F8
Run To Cursor
Opt+F9
Force Run To Cursor
Cmd+Opt+F9
Show Execution Point
Opt+F10
Evaluate Expression...
Opt+F8
Quick Evaluate Expression
Cmd+Opt+F8
Toggle Line Breakpoint
Cmd+F8
Toggle Temporary Line Breakpoint
Cmd+Opt+Shift+F8
View Breakpoints...
Cmd+Shift+F8
Edit Breakpoint
Cmd+Shift+F8
Show Run window
Cmd+4
Show Debug window
Cmd+5
Show Services window
Cmd+8

Refactorings

Refactor This...
Ctrl+T
Rename...
Shift+F6
Change Signature...
Cmd+F6
Inline...
Cmd+Opt+N
Move...
F6
Extract Method...
Cmd+Opt+M
Introduce Field...
Cmd+Opt+F
Introduce Parameter...
Cmd+Opt+P
Introduce Variable...
Cmd+Opt+V
Safe Delete...
Cmd+Fwd Del

Global VCS actions

VCS Operations Popup...
Ctrl+V
Commit...
Cmd+K
Update Project
Cmd+T
Rollback
Cmd+Opt+Z
Push...
Cmd+Shift+K
Next Change
Ctrl+Opt+Shift+Down
Previous Change
Ctrl+Opt+Shift+Up
Show Version Control window
Cmd+9
Show Commit window
Cmd+0

Diff Viewer

Show Diff
Cmd+D
Compare Files
Cmd+D
Next Difference
F7
Previous Difference
Shift+F7
Accept Left Side
Cmd+Ctrl+Right
Accept Right Side
Cmd+Ctrl+Left
Select Opposite Diff Pane
Ctrl+Shift+Tab
Show Diff Settings Popup...
Cmd+Shift+D

Tool windows

Hide Active Tool Window
Shift+Esc
Hide All Tool Windows
Cmd+Shift+F12
Jump to Last Tool Window
F12
Stretch to Left
Ctrl+Opt+Left
Stretch to Right
Ctrl+Opt+Right
Stretch to Top
Ctrl+Opt+Up
Stretch to Bottom
Ctrl+Opt+Down
Show Project window
Cmd+1
Show Bookmarks window
Cmd+2
Show Find window
Cmd+3
Show Run window
Cmd+4
Show Debug window
Cmd+5
Show Problems window
Cmd+6
Show Structure window
Cmd+7
Show Services window
Cmd+8
Show Version Control window
Cmd+9
Show Commit window
Cmd+0
Show Terminal window
Opt+F12

Intro

IntelliJ IDEA on Mac follows macOS's own conventions rather than a direct Windows swap: tool windows are Cmd+1 through 9, and line-start/line-end navigation uses Cmd+Left/Right instead of Home/End.

Mac-specific shortcut notes

Search Everywhere. Double-tap Shift from anywhere to search files, actions, symbols, and settings in one box.

Tool windows follow Mac numbering. Cmd+1 opens Project, Cmd+9 opens Version Control, matching how macOS apps typically number their panels, rather than Windows' Alt+1-9.

Word and line navigation uses Option and Cmd, not Ctrl. Option+Left/Right moves by word, Cmd+Left/Right moves to the start or end of the line, the standard macOS text-editing pattern.

Refactor This. Ctrl+T opens a menu of every refactoring available at the caret, rename, extract, move, safe delete, and more.

Printable PDF

The IntelliJ IDEA macOS shortcut list is available as a printable PDF. Search Everywhere, Refactor This, and Find Usages are the ones worth learning first.

FAQ

Need more than shortcuts?
Visit the IntelliJ IDEA app page for an overview and helpful links.

Want to suggest a new app, report a bug, or get help? Email us at info@hkeys.app.

For anything else or just a quick hello, write to us at info@hkeys.app.