Claude Code cheat sheet for Mac and Windows

59 shortcuts in 11 lessons for Mac

59 shortcuts in 12 lessons for Windows

Reading a list won't make them stick. ShortcutFoo has you type each shortcut, then brings it back just before you'd forget it.

Claude Code shortcuts for Mac

Essentials I

4 shortcuts
  • ESC
    Stop Claude mid-response
  • ESCESC
    Rewind to an earlier point (empty prompt)
  • ^C
    Interrupt, or clear the prompt
  • ⇧TAB
    Cycle permission modes (manual, accept edits, plan)

Essentials II

4 shortcuts
  • ?
    Show the shortcut help panel (empty prompt)
  • UP
    Previous prompt from history
  • ^D^D
    Exit Claude Code (press twice)
  • ^L
    Redraw the screen

Writing Prompts I

5 shortcuts
  • /
    Open the command and skill menu
  • !
    Run a shell command (shell mode)
  • @
    Mention a file
  • ^J
    New line in the prompt (any terminal)
  • \
    New line with backslash, then Enter

Writing Prompts II

5 shortcuts
  • ^G
    Write the prompt in your text editor
  • ^V
    Paste an image from the clipboard
  • ^R
    Search prompt history
  • ^S
    Stash the prompt, or restore it
  • TAB
    Accept an autocomplete suggestion

Slash Commands I

6 shortcuts
  • /clear
    Start a new conversation
  • /compact
    Summarize the conversation to free up context
  • /rewind
    Rewind the conversation or code
  • /resume
    Resume an earlier conversation
  • /model
    Switch the model
  • /init
    Create a CLAUDE.md guide for the project

Slash Commands II

6 shortcuts
  • /memory
    Edit CLAUDE.md memory files
  • /context
    See how full the context is
  • /usage
    Show cost and plan usage
  • /permissions
    Manage tool permission rules
  • /config
    Open settings
  • /mcp
    Manage MCP servers

Models & Tasks I

6 shortcuts
  • ⌥P
    Switch model
  • ⌥T
    Toggle extended thinking
  • ⌥O
    Toggle fast mode
  • ^T
    Show or hide Claude's task checklist
  • ^B
    Send a running command or agent to the background
  • ^O
    Toggle the transcript viewer

Models & Tasks II

5 shortcuts
  • ^_
    Undo the last edit to the prompt
  • ^X^S
    Send queued messages now
  • ^X^K
    Stop all background agents
  • ^X^E
    Open the prompt in your editor (readline style)
  • ^Z
    Suspend Claude Code (resume with fg)

Editing the Prompt

6 shortcuts
  • ^A
    Move to start of line
  • ^E
    Move to end of line
  • ^K
    Delete to end of line
  • ^U
    Delete to start of line
  • ^Y
    Paste the text you just deleted
  • ⌥BACKSPACE
    Delete the previous word

Vim Mode I

6 shortcuts
  • ESC
    Normal mode
  • I
    Insert at start of line
  • A
    Append at end of line
  • o
    Open a line below
  • dd
    Delete the line
  • ciw
    Change the word under the cursor

Vim Mode II

6 shortcuts
  • ci"
    Change text inside quotes
  • di(
    Delete text inside parentheses
  • %
    Jump to matching bracket
  • gg
    Go to the start of the prompt
  • u
    Undo
  • .
    Repeat the last change

Claude Code shortcuts for Windows

Essentials I

4 shortcuts
  • ESC
    Stop Claude mid-response
  • ESCESC
    Rewind to an earlier point (empty prompt)
  • ^C
    Interrupt, or clear the prompt
  • ⇧TAB
    Cycle permission modes (manual, accept edits, plan)

Essentials II

4 shortcuts
  • ?
    Show the shortcut help panel (empty prompt)
  • UP
    Previous prompt from history
  • ^D^D
    Exit Claude Code (press twice)
  • ^L
    Redraw the screen

Writing Prompts I

5 shortcuts
  • /
    Open the command and skill menu
  • !
    Run a shell command (shell mode)
  • @
    Mention a file
  • ^J
    New line in the prompt (any terminal)
  • \
    New line with backslash, then Enter

Writing Prompts II

5 shortcuts
  • ^G
    Write the prompt in your text editor
  • ⌥V
    Paste an image from the clipboard (Alt+V on Windows, Ctrl+V on Linux)
  • ^R
    Search prompt history
  • ^S
    Stash the prompt, or restore it
  • TAB
    Accept an autocomplete suggestion

Slash Commands I

6 shortcuts
  • /clear
    Start a new conversation
  • /compact
    Summarize the conversation to free up context
  • /rewind
    Rewind the conversation or code
  • /resume
    Resume an earlier conversation
  • /model
    Switch the model
  • /init
    Create a CLAUDE.md guide for the project

Slash Commands II

6 shortcuts
  • /memory
    Edit CLAUDE.md memory files
  • /context
    See how full the context is
  • /usage
    Show cost and plan usage
  • /permissions
    Manage tool permission rules
  • /config
    Open settings
  • /mcp
    Manage MCP servers

Models & Tasks I

5 shortcuts
  • ⌥P
    Switch model
  • ⌥T
    Toggle extended thinking
  • ⌥O
    Toggle fast mode
  • ^B
    Send a running command or agent to the background
  • ^O
    Toggle the transcript viewer

Models & Tasks II

4 shortcuts
  • ^_
    Undo the last edit to the prompt
  • ^X^S
    Send queued messages now
  • ^X^K
    Stop all background agents
  • ^X^E
    Open the prompt in your editor (readline style)

Editing the Prompt I

4 shortcuts
  • ^A
    Move to start of line
  • ^E
    Move to end of line
  • ^K
    Delete to end of line
  • ^U
    Delete to start of line

Editing the Prompt II

4 shortcuts
  • ^Y
    Paste the text you just deleted
  • ^BACKSPACE
    Delete the previous word
  • ⌥B
    Move back one word
  • ⌥F
    Move forward one word

Vim Mode I

6 shortcuts
  • ESC
    Normal mode
  • I
    Insert at start of line
  • A
    Append at end of line
  • o
    Open a line below
  • dd
    Delete the line
  • ciw
    Change the word under the cursor

Vim Mode II

6 shortcuts
  • ci"
    Change text inside quotes
  • di(
    Delete text inside parentheses
  • %
    Jump to matching bracket
  • gg
    Go to the start of the prompt
  • u
    Undo
  • .
    Repeat the last change