REFERENCE · IntelliJ IDEA · macOS keymap · Blackjack Ensemble course

Reference card — print me

IntelliJ Shortcuts for Pairing

The macOS (default) keymap. Symbols: ⌘ Cmd · ⌥ Option · ⌃ Control · ⇧ Shift · ↩ Enter · ⌫ Delete. Keep this open on your second monitor while you mob.

The escape hatch Forget a shortcut? ⇧⇧ (Search Everywhere) or ⌘⇧A (Find Action) run any command by name. Learn these two and you can always find the rest.

1 · The TDD loop (learn these first)

KeysActionWhy it matters here
⌃⇧RRun test/class under caretRun the one test you're driving
⌃RRe-run lastThe green-refactor heartbeat
⌘⇧TJump class ⇄ testHandHandValueAceTest
⌥↩Intention actions / quick-fixCreate the missing method/class the failing test names
⌘NGenerate (in editor)Constructor, equals/hashCode, override, Test…
⌃⌥O  ·  ⌘⌥LOptimize imports · reformatTidy before you hand over

2 · Navigation (a hexagonal codebase has many small files)

KeysAction
⇧⇧Search Everywhere — double-tap Shift
⌘OGo to class (GameService)
⌘⇧OGo to file (pom.xml, a Thymeleaf .html)
⌘⌥OGo to symbol (method/field by name)
⌘B / ⌘-clickGo to declaration → then usages
⌥⌘BGo to implementation (DeckStubDeck, OrderedDeck)
⌘ERecent files  ·  ⌃Tab switcher
⌘[ / ⌘]Navigate back / forward
⌘F12File structure (methods in this file)
⌘1  ·  ⎋Toggle Project window · return to editor

3 · Editing & refactoring

KeysAction
⇧F6Rename (safe, everywhere)
⌥⌘MExtract method
⌥⌘V / ⌥⌘C / ⌥⌘F / ⌥⌘PExtract variable / constant / field / parameter
⌃TRefactor This… menu
⌘D / ⌘⌫Duplicate / delete line
⌥↑ / ⌥↓Extend / shrink selection
⌃GAdd next occurrence (multi-cursor)
⌘/ · ⌘⌥/Line · block comment
F2 / ⇧F2Next / previous error

4 · Running & Git (git-handover pairing)

KeysAction
⌃⇧R / ⌃⇧DRun / Debug class under caret
F8 / F7Step over / into (debugger)
⌘K / ⌘⇧KCommit / Push
⌘TUpdate project (pull)
⌘9Git tool window
⌃⌃Run Anything
Ensemble handover — your team rotates via git (mob)

The mob tool is installed. In the repo terminal (⌥F12 opens IntelliJ's terminal):

mob start 10        # begin session, 10-min turns; pulls the mob branch
# ...you type while the mob directs...
mob next            # commit WIP & hand the keyboard to the next person
mob done            # squash the mob branch back onto master, ready to commit as one change

Everyone runs mob start to receive the baton; the typist runs mob next when the timer rings. See mob.sh.

Two Mac gotchas

Mission Control steals ⌃↑/⌃↓/⌃←/⌃→. If IntelliJ's caret/tab moves don't work, turn them off in System Settings → Keyboard → Keyboard Shortcuts → Mission Control.

F-keys: if F2/F7/F8 change brightness/volume, add fn, or tick “Use F1, F2… as standard function keys.”

Primary source

JetBrains keeps the authoritative, always-current list: Mastering keyboard shortcuts, and the printable IntelliJ IDEA Reference Card (PDF). In-app: ⌘⇧A → “Keymap” shows and lets you rebind anything. Tip: enable Key Promoter X (plugin) to learn shortcuts as you click.

Want me to rebind anything (e.g. a one-key Code With Me or a “run all tests” chord), or export this keymap so the whole ensemble shares it? Ask me.