Keyboard Shortcuts5 min read

Master IntelliJ IDEA Keyboard Shortcuts on macOS

Navigate, refactor, and debug faster in IntelliJ IDEA with a macOS-first shortcut toolkit you can lean on daily.

Illustration of a Mac IDE workspace with floating keyboard shortcut keys

IntelliJ IDEA is built for power users. These shortcuts keep your macOS development momentum high.

Navigation

ActionShortcut
Search Everywhere⇧ + ⇧
Go to Class⌘ + O
Go to File⌘ + ⇧ + O
Navigate back/forward⌘ + [ / ⌘ + ]
Recent files popup⌘ + E
Find Action⌘ + ⇧ + A
Find in Path⌘ + ⇧ + F
Replace in Path⌘ + ⇧ + R
Find Usages⌥ + F7

Editing and refactoring

ActionShortcut
Show intentions/actions⌥ + Enter
Smart rename⇧ + F6
Extract variable⌥ + ⌘ + V
Extract method⌥ + ⌘ + M
Duplicate line⌘ + D
Delete line⌘ + Backspace
Comment line⌘ + /
Block comment⌘ + ⌥ + /
Extend selection⌥ + ↑
Shrink selection⌥ + ↓
Move statement up/down⌘ + ⇧ + ↑ / ⌘ + ⇧ + ↓

Code generation

ActionShortcut
Generate code (getters, constructors)⌘ + N
Surround with (try/catch, if, etc.)⌘ + ⌥ + T
Override methods⌃ + O
Implement methods⌃ + I
Reformat code⌘ + ⌥ + L
Optimize imports⌃ + ⌥ + O
Complete current statement⌘ + ⇧ + Enter

Code navigation

ActionShortcut
Show implementations⌥ + ⌘ + B
Navigate to declaration⌘ + B
View file structure⌘ + F12
Jump between methods⌃ + ↑ / ⌃ + ↓
Toggle bookmark⌃ + ⌥ + <digit>
Show bookmarks⇧ + F11

Debugger

ActionShortcut
Step overF8
Step intoF7
Smart step into⇧ + F7
Run to cursor⌥ + F9
Evaluate expression⌥ + F8
Toggle breakpoint⌘ + F8
View breakpoints⌘ + ⇧ + F8
Resume program⌥ + ⌘ + R

Run and build

ActionShortcut
Run current configuration⌃ + R
Debug current configuration⌃ + D
Run context configuration⌃ + ⇧ + R
Debug context configuration⌃ + ⇧ + D
Stop⌘ + F2
Build project⌘ + F9

Documentation

ActionShortcut
Quick DocumentationF1
Parameter info⌘ + P
Type info⌃ + ⇧ + P
Error description⌘ + F1

Version control

ActionShortcut
Open commit window⌘ + K
Push⌘ + ⇧ + K
Quick branch popup⌃ + V
Show recent changes⇧ + ⌘ + C

Tabs and windows

ActionShortcut
Close active tab⌘ + W
Reopen closed tab⌘ + ⇧ + T
Next tab⌘ + ⇧ + ]
Previous tab⌘ + ⇧ + [
Hide all tool windows⌘ + ⇧ + F12

Customize shortcuts

Open IntelliJ IDEA → Settings → Keymap (⌘ + ,) to view and customize all bindings.

Show your shortcuts on screen

Creating tutorials or presenting live? KeyScreen displays your keystrokes beautifully on screen so viewers always know what you pressed.

Discover more posts

KeyScreen settings with Show Function Keys enabled beside illustrated F1, F2, F3, and F4 keys
September 17, 20263 min read

How to Show Function Keys on Your Mac ScreenHow to Show Function Keys on Your Mac Screen

Show F1–F12 on your Mac screen with KeyScreen. Choose exactly which key types appear so function keys display clearly in recordings and demos.

Illustration of a Mac design canvas with artboards and floating shortcut keys
December 25, 20259 min read

Figma Keyboard Shortcuts: The Complete Guide for MacFigma Keyboard Shortcuts: The Complete Guide for Mac

Master Figma with this comprehensive keyboard shortcuts guide for Mac. From essential tools to advanced prototyping, become a Figma power user.

Simple no-tricks pricing
Pay once, use forever

You can download the app from the Mac App Store or directly from our website.

Download on the Mac App Store
Direct
Download

Prefer the terminal?