Fundamentals 13 min read

Master Mac IntelliJ IDEA Keyboard Shortcuts: Boost Your Productivity

This guide provides a comprehensive collection of essential Mac keyboard shortcuts for IntelliJ IDEA, covering editing, searching, navigation, compiling, debugging, version control, live templates, and general IDE actions to help developers work faster and more efficiently.

Programmer DD
Programmer DD
Programmer DD
Master Mac IntelliJ IDEA Keyboard Shortcuts: Boost Your Productivity

This article compiles the most useful Mac keyboard shortcuts for IntelliJ IDEA, organized by functional categories to improve development efficiency.

Editing

⌃Space

Basic code completion ⌃⇧Space Smart code completion ⌘⇧↩ 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 quick info ⌘F1 Show detailed error/warning description ⌘N, ⌃↩, ⌃N Generate getters/setters/constructors/toString ⌃O Override method ⌃I Implement method ⌘⌥T Surround with if/try/for/etc. ⌘/ Toggle line comment ⌘⌥/ Toggle block comment ⌥↑ Expand selection ⌥↓ Shrink selection ⌃⇧Q Show context info ⌥↩ Show intention actions ⌘⌥L Reformat code ⌃⌥O Optimize imports ⌃⌥I Auto‑indent lines ⇥ / ⇧⇥ Indent / unindent ⌘X Cut line or selection ⌘C Copy line or selection ⌘V Paste from clipboard ⌘⇧V Paste from recent buffer ⌘D Duplicate line or selection ⌘⌫ Delete line or selection ⌃⇧J Join lines intelligently ⌘↩ Split joined line ⇧↩ Start a new line ⌘⇧U Toggle case ⌘⇧] / ⌘⇧[ Select to end/start of block ⌥⌦ Delete to word end (Fn+Delete) ⌥⌫ Delete to word start ⌘+ / ⌘- Expand / collapse code block ⌘⇧+ Expand all blocks ⌘⇧- Collapse all blocks ⌘W Close active editor tab

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 Structure search (Ultimate) ⌘⇧M Structure replace (Ultimate)

Usage Search

⌥F7 / ⌘F7

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

Compile and Run

⌘F9

Build project ⌘⇧F9 Build selected file/package/module ⌃⌥R Show Run menu ⌃⌥D Show Debug menu ⌃R Run ⌃D Debug ⌃⇧R, ⌃⇧D Run from editor context

Debugging

F8

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

Navigation

⌘O

Find class ⌘⇧O Find any type / open file / directory ⌘⌥O Go to symbol ⌃← / ⌃→ Switch editor tabs F12 Return to previous tool window Focus code window from tool window ⇧⎋ Hide current window and focus code ⌘⇧F4 Close active run/message/find tab ⌘L Go to line ⌘E Recent files list ⌘⌥← / ⌘⌥→ Navigate back/forward ⌘⇧⌫ Jump to last edit location ⌥F1 Show target chooser ⌘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 ⌃↓ / ⌃↑ Jump to next/previous method ⌘\] / ⌘[ Jump to block start/end ⌘F12 Show file structure popup ⌃H Show class hierarchy ⌘⇧H Show method hierarchy ⌃⌥H Show call hierarchy F2 / ⇧F2 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

VCS / Local History

⌘K

Commit changes ⌘T Update project ⌥⇧C View recent changes ⌃C Quick VCS actions

Live Templates

⌘⌥J

Surround with live template ⌘J Insert custom live template

General

⌘1…⌘9

Open tool windows by number ⌘S Save all ⌘⌥Y Sync / refresh ⌃⌘F Toggle full‑screen mode ⌘⇧F12 Maximize editor ⌥⇧F Add to favorites ⌘, Open IDE settings ⌘; Open project structure ⇧⌘A Find action ⌃⇥ Switch between editor and tool windows

Other

⌘⇧8

Column (vertical) edit mode

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.

IntelliJ IDEAkeyboard shortcutsIDE productivityMac shortcuts
Programmer DD
Written by

Programmer DD

A tinkering programmer and author of "Spring Cloud Microservices in Action"

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.