REFERENCE · IntelliJ IDEA · macOS keymap · Blackjack Ensemble course
Reference card — print me
The macOS (default) keymap. Symbols: ⌘ Cmd · ⌥ Option · ⌃ Control · ⇧ Shift · ↩ Enter · ⌫ Delete. Keep this open on your second monitor while you mob.
| Keys | Action | Why it matters here |
|---|---|---|
| ⌃⇧R | Run test/class under caret | Run the one test you're driving |
| ⌃R | Re-run last | The green-refactor heartbeat |
| ⌘⇧T | Jump class ⇄ test | Hand ⇄ HandValueAceTest |
| ⌥↩ | Intention actions / quick-fix | Create the missing method/class the failing test names |
| ⌘N | Generate (in editor) | Constructor, equals/hashCode, override, Test… |
| ⌃⌥O · ⌘⌥L | Optimize imports · reformat | Tidy before you hand over |
| Keys | Action |
|---|---|
| ⇧⇧ | Search Everywhere — double-tap Shift |
| ⌘O | Go to class (GameService) |
| ⌘⇧O | Go to file (pom.xml, a Thymeleaf .html) |
| ⌘⌥O | Go to symbol (method/field by name) |
| ⌘B / ⌘-click | Go to declaration → then usages |
| ⌥⌘B | Go to implementation (Deck → StubDeck, OrderedDeck) |
| ⌘E | Recent files · ⌃Tab switcher |
| ⌘[ / ⌘] | Navigate back / forward |
| ⌘F12 | File structure (methods in this file) |
| ⌘1 · ⎋ | Toggle Project window · return to editor |
| Keys | Action |
|---|---|
| ⇧F6 | Rename (safe, everywhere) |
| ⌥⌘M | Extract method |
| ⌥⌘V / ⌥⌘C / ⌥⌘F / ⌥⌘P | Extract variable / constant / field / parameter |
| ⌃T | Refactor This… menu |
| ⌘D / ⌘⌫ | Duplicate / delete line |
| ⌥↑ / ⌥↓ | Extend / shrink selection |
| ⌃G | Add next occurrence (multi-cursor) |
| ⌘/ · ⌘⌥/ | Line · block comment |
| F2 / ⇧F2 | Next / previous error |
| Keys | Action |
|---|---|
| ⌃⇧R / ⌃⇧D | Run / Debug class under caret |
| F8 / F7 | Step over / into (debugger) |
| ⌘K / ⌘⇧K | Commit / Push |
| ⌘T | Update project (pull) |
| ⌘9 | Git tool window |
| ⌃⌃ | Run Anything |
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.
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.”
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.