Fundamentals 12 min read

Master Mac IntelliJ IDEA: Complete Shortcut Guide

This article provides a comprehensive reference of Mac keyboard symbols and modifier keys followed by an exhaustive list of IntelliJ IDEA shortcuts on macOS, covering editing, search/replace, navigation, debugging, refactoring, version control, live templates, and general actions to boost developer productivity.

Shepherd Advanced Notes
Shepherd Advanced Notes
Shepherd Advanced Notes
Master Mac IntelliJ IDEA: Complete Shortcut Guide

Mac Keyboard Symbols and Modifier Keys

Command Shift Option Control ↩︎ Return/Enter Delete Forward Delete (Fn+Delete) Up Arrow Down Arrow Left Arrow Right Arrow Page Up (Fn+↑) Page Down (Fn+↓) Home Fn + ← End Fn + → Right Tab (Tab key) Left Tab (Shift+Tab) Escape (Esc)

1. Editing

⌃Space

Basic code completion ⌃⇧Space Smart code completion (filters by expected type) ⌘⇧↩ Auto‑insert semicolon at line end ⌘P Show method parameter info ⌃J, Mid. button click Quick view documentation ⇧F1 Open external documentation ⌘+ mouse over code Show brief code info ⌘F1 Show detailed description for errors/warnings ⌘N, ⌃↩, ⌃N Generate code (getter, setter, constructor, etc.) ⌃O Override method ⌃I Implement method ⌘⌥T Surround with if/else, try/catch, for, synchronized, etc. ⌘/ Toggle line comment ⌘⌥/ Toggle block comment ⌥↑ Expand selection upward ⌥↓ Shrink selection ⌃⇧Q Show context info ⌥↩ Show intention actions and quick‑fixes ⌘⌥L Reformat code ⌃⌥O Optimize imports ⌃⌥I Auto‑indent lines ⇥ / ⇧⇥ Indent / unindent code ⌘X Cut current line or selected block ⌘C Copy current line or selected block ⌘V Paste from clipboard ⌘⇧V Paste from recent buffer ⌘D Duplicate current line or block ⌘⌫ Delete current line or block ⌃⇧J Join lines intelligently ⌘↩ Split joined line ⇧↩ Start a new line ⌘⇧U Toggle case ⌘⇧] / ⌘⇧[ Select to end/start of code block ⌥⌦ Delete to end of word (⌦ = Fn+Delete) ⌥⌫ Delete to start of word ⌘+ / ⌘- Expand / collapse code block ⌘⇧+ Expand all code blocks ⌘⇧- Collapse all code blocks ⌘W Close active editor tab

2. Search/Replace

Double ⇧

Search anything ⌘F Find in file ⌘G Find next (down) ⌘⇧G Find previous (up) ⌘R Replace in file ⌘⇧F Global find (by path) ⌘⇧R Global replace (by path) ⌘⇧S Structural search (Ultimate edition) ⌘⇧M Structural replace (Ultimate edition)

3. Usage Search

⌥F7 / ⌘F7

Find usages in file / class ⌘⇧F7 Highlight usages in file ⌘⌥F7 Show usages

4. Compile and Run

⌘F9

Compile project ⌘⇧F9 Compile selected file/package/module ⌃⌥R Show Run menu ⌃⌥D Show Debug menu ⌃R Run ⌃D Debug ⌃⇧R, ⌃⇧D Run with context configuration

5. Debugging

F8

Step over (skip method body) F7 Step into (enter method body) ⇧F7 Smart step into (choose method when multiple calls) ⇧F8 Step out ⌥F9 Run to cursor ⌥F8 Evaluate expression ⌘⌥R Resume program ⌘F8 Toggle breakpoint ⌘⇧F8 View breakpoint details

6. Navigation

⌘O

Go to class ⌘⇧O Go to file/type ⌘⌥O Go to symbol ⌃← / ⌃→ Switch editor tabs left/right F12 Return to previous tool window Focus code window from tool window ⇧⎋ Hide current/last active window ⌘⇧F4 Close active run/message/find tab ⌘L Jump to line number ⌘E Show recent files ⌘⇧← / ⌘⇧→ Navigate back/forward ⌘⇧⌫ Jump to last edit location ⌥F1 Show context‑specific popup (e.g., reveal in Finder) ⌘B / ⌘ click Go to declaration/definition ⌘⌥B Go to implementation ⌥ Space, ⌘Y Quick open definition ⌃⇧B Go to type declaration ⌘U Go to super method/interface ⌃↓ / ⌃↑ Navigate to next/previous method in file ⌘] / ⌘[ Jump to matching brace ⌘F12 Show file structure popup ⌃H Show class hierarchy ⌘⇧H Show method hierarchy ⌃⌥H Show call hierarchy F2 / ⇧F2 Navigate to next/previous error or warning F4 / ⌘↓ Edit / view source ⌥ Home Show navigation bar F3 Toggle bookmark ⌥F3 Toggle mnemonic bookmark ⌃0…⌃9 Jump to numeric bookmark ⌘F3 Show all bookmarks

7. Refactoring

F5

Copy file to directory F6 Move file to directory ⌘⌫ Safe delete file (confirm dialog) ⇧F6 Rename file ⌘F6 Change signature ⌘⌥N Ensure consistency ⌘⌥M Extract method ⌘⌥V Extract variable ⌘⌥F Extract field ⌘⌥C Extract constant ⌘⌥P Extract parameter

8. VCS / Local History

⌘K

Commit to VCS ⌘T Update from VCS ⌥⇧C Show recent changes ⌃C Quick VCS operations popup

9. Live Templates

⌘⌥J

Open template chooser and wrap selected code ⌘J Insert custom live template

10. General

⌘1…⌘9

Open corresponding tool window ⌘S Save all ⌘⌥Y Sync / refresh ⌃⌘F Toggle full‑screen mode ⌘⇧F12 Toggle maximized editor ⌥⇧F Add to favorites ⌥⇧I Inspect current file against configuration ⌘, Open IDEA settings ⌘; Open project structure dialog ⇧⌘A Find action (with options) ⌃⇥ Switch between editor and tool windows (delete to close)

Original Source

Signed-in readers can open the original source through BestHub's protected redirect.

Sign in to view source
Republication Notice

This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactadmin@besthub.devand we will review it promptly.

productivityIntelliJ IDEAIDEkeyboard shortcutsMac shortcuts
Shepherd Advanced Notes
Written by

Shepherd Advanced Notes

Dedicated to sharing advanced Java technical insights, daily work snippets, and the power of persistent effort.

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.