Claude Code keyboard shortcuts for Mac
34 default Claude Code shortcuts on Mac, grouped by task.
34 shortcuts
Keys:
Controlling Claude
8 shortcuts| Action | Keys |
|---|---|
| Stop Claude while it is working | Esc |
| Rewind the conversation or codePrompt is empty | Esc,Esc |
| Cycle permission modes (normal, auto-accept, plan) | ShiftTab |
| Switch the model | OptionP |
| Turn extended thinking on or off | OptionT |
| Move a running command to the backgroundA command is running | CtrlB |
| Show or hide the to-do list | CtrlT |
| Show the full transcript | CtrlO |
Input
6 shortcuts| Action | Keys |
|---|---|
| New line in the prompt | ShiftEnter |
| Paste an image from the clipboard | CtrlV |
| Edit the prompt in your text editor | CtrlG |
| Cancel the input or generation | CtrlC |
| Exit Claude CodePrompt is empty | CtrlD |
| Clear the terminal screen | CtrlL |
History
3 shortcuts| Action | Keys |
|---|---|
| Previous prompt | ↑ |
| Next prompt | ↓ |
| Search prompt history | CtrlR |
Prompt shortcuts
7 shortcuts| Action | Keys |
|---|---|
| Show the shortcut listPrompt is empty | Shift/ |
| Open slash commandsStart of the prompt | / |
| Run a shell command directly (bash mode)Start of the prompt | Shift1 |
| Mention a file or folder | Shift2 |
| Accept the suggestion or file path | Tab |
| 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| Action | Keys |
|---|---|
| Go to the start of the line | CtrlA |
| Go to the end of the line | CtrlE |
| 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 line | CtrlK |
| Delete to the start of the line | CtrlU |
| Delete the previous word | CtrlW |
| Paste the text you deleted | CtrlY |
| Cycle through earlier deleted textRight after Ctrl+Y | OptionY |
| Suspend Claude Code to the shell| Type fg to come back. Not on Windows. | CtrlZ |
No shortcuts match. Try fewer words, the key names only, or search every app.
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.