Ctrl+C | Interrupt, or clear input | Interrupts a running operation. If nothing is running, the first press clears the prompt input and a second press exits Claude Code |
Ctrl+X Ctrl+K | Stop all running background subagents in this session. Press twice within 3 seconds to confirm | Subagent control |
Ctrl+D | Exit Claude Code session | The first press shows a confirmation hint and a second press within 800ms exits. When the prompt has text, Ctrl+D deletes the character after the cursor instead |
Ctrl+G or Ctrl+X Ctrl+E | Open in default text editor | Edit your prompt or custom response in your default text editor. Ctrl+X Ctrl+E is the readline-native binding. Turn on Show last response in external editor in /config to prepend Claude’s previous reply as #-commented context above your prompt; Claude Code strips the comment block when you save |
Ctrl+L | Redraw screen | Forces a full terminal redraw, keeping input and conversation history. Use this to recover if the display becomes garbled or partially blank. In fullscreen rendering, if you press Ctrl+L once, Claude Code redraws the screen and also shows a hint that pressing it again runs /clear. If you press it twice within two seconds, Claude Code runs /clear and starts a new conversation |
Ctrl+O | Toggle transcript viewer | Shows detailed tool usage and execution, with a timestamp and the model used on each assistant message. Also expands MCP calls, which collapse to a single line like “Called slack 3 times” by default |
Ctrl+R | Reverse search command history | Search through previous commands interactively |
Ctrl+V or Cmd+V (iTerm2) or Alt+V (Windows and WSL) | Paste image from clipboard | Inserts an [Image #N] chip at the cursor so you can reference it positionally in your prompt. On WSL, both Ctrl+V and Alt+V are bound; use Alt+V if your terminal intercepts Ctrl+V |
Ctrl+B | Background running tasks | Backgrounds Bash commands and agents. Tmux users press twice |
Ctrl+T | Toggle Claude’s task checklist | Show or hide Claude’s to-do checklist in the status area. This is not the background-task view; use /tasks to see running shells and subagents |
Ctrl+S | Stash or restore prompt | With text in the input, stashes it and clears the prompt. Pressed again on an empty prompt, restores the stashed text, cursor position, and pasted content |
Ctrl+Z | Suspend Claude Code | Unix only. Suspends the process to your shell; run fg to resume |
Left/Right arrows | Cycle through dialog tabs | Navigate between tabs in permission dialogs and menus |
Up/Down arrows or Ctrl+P/Ctrl+N | Move cursor or navigate command history | When the input spans more than one visual row, whether wrapped or multiline, first moves the cursor within the prompt. Once the cursor is on the first or last visual row, pressing again navigates command history. While you have messages queued, Up from the first row instead takes them back |
Esc | Interrupt Claude, or close a dialog | Stop the current response or tool call mid-turn so you can redirect. Claude keeps the work done so far. If you have messages queued, Claude Code sends them next. When a dialog such as a permission prompt is open, Esc closes the dialog rather than interrupting Claude |
Esc + Esc | Clear input draft, or rewind | When the prompt input contains text, double Esc clears it and saves the draft to history so Up recalls it. When the input is empty, double Esc opens the rewind menu to restore or summarize code and conversation from a previous point |
Shift+Tab, or Alt+M on Windows when the Node or Bun runtime doesn’t enable VT input mode | Cycle permission modes | Cycle through default (labeled Manual in the mode indicator), acceptEdits, plan, and, when available, bypassPermissions and then auto. From auto, the first press switches to default. See permission modes. |
Option+P (macOS) or Alt+P (Windows/Linux) | Switch model | Switch models without clearing your prompt |
Option+T (macOS) or Alt+T (Windows/Linux) | Toggle extended thinking | Enable or disable extended thinking mode. Has no effect on Fable 5, which always uses extended thinking. Works on macOS without configuring Option as Meta |
Option+O (macOS) or Alt+O (Windows/Linux) | Toggle fast mode | Enable or disable fast mode |