Skip to content

↑↓ moveEnter openEsc close

Claude Code keyboard shortcuts for Mac

Claude Code 2.x · 34 shortcuts · checked Nov 2026 · Source: Anthropic docs

34 default Claude Code shortcuts on Mac, grouped by task.

34 shortcuts
Keys:
ActionKeys
Stop Claude while it is workingEsc
Rewind the conversation or codePrompt is emptyEsc,Esc
Cycle permission modes (normal, auto-accept, plan)ShiftTab
Switch the modelOptionP
Turn extended thinking on or offOptionT
Move a running command to the backgroundA command is runningCtrlB
Show or hide the to-do listCtrlT
Show the full transcriptCtrlO

Input

6 shortcuts
ActionKeys
New line in the promptShiftEnter
Paste an image from the clipboardCtrlV
Edit the prompt in your text editorCtrlG
Cancel the input or generationCtrlC
Exit Claude CodePrompt is emptyCtrlD
Clear the terminal screenCtrlL

History

3 shortcuts
ActionKeys
Previous prompt↑
Next prompt↓
Search prompt historyCtrlR

Prompt shortcuts

7 shortcuts
ActionKeys
Show the shortcut listPrompt is emptyShift/
Open slash commandsStart of the prompt/
Run a shell command directly (bash mode)Start of the promptShift1
Mention a file or folderShift2
Accept the suggestion or file pathTab
New line (works in any terminal)CtrlJ
New line with Option+Enter| The macOS default in Terminal.app and iTerm2 once Option is set to act as Meta.OptionEnter

Editing the prompt

10 shortcuts
ActionKeys
Go to the start of the lineCtrlA
Go to the end of the lineCtrlE
Back one word| On a Mac, set Option to act as Meta in your terminal.OptionB
Forward one word| On a Mac, set Option to act as Meta in your terminal.OptionF
Delete to the end of the lineCtrlK
Delete to the start of the lineCtrlU
Delete the previous wordCtrlW
Paste the text you deletedCtrlY
Cycle through earlier deleted textRight after Ctrl+YOptionY
Suspend Claude Code to the shell| Type fg to come back. Not on Windows.CtrlZ

These are the default Claude Code key bindings on Mac, from Anthropic's official list for version 2.x. Shortcuts that exist only on another system are left out here; the all-systems view shows every binding side by side.

Other systems: Claude Code shortcuts for Windows, Claude Code shortcuts for Linux. Or print the Claude Code cheat sheet.