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. To get a cleared draft back, see Bring back a cleared draft |
Ctrl+X Ctrl+K | Stop all running background subagents in this session, and turn off artifact auto-replies for the rest of it. Press twice within 3 seconds to confirm. You can press it while a background subagent’s permission prompt is open | 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 the screen | Forces a full terminal redraw, keeping input and conversation history. Use this to recover if the display becomes garbled or partially blank. See Clear the conversation for fullscreen rendering |
Ctrl+O | Toggle transcript viewer | Shows detailed tool usage and execution, with a timestamp and the model used on each assistant message. Also expands lines that collapse by default, such as MCP calls, shown as a single Called slack 3 times line, and messages from your other sessions, shown as a one-line Message from @<sender> preview |
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, pasted content, and input mode, so a stashed ! shell command comes back in shell mode |
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. In a tabbed dialog, the keys switch tabs while the tab row has focus. See Tabs actions for how focus moves |
Tab | Accept an autocomplete suggestion, or add a comment to a permission answer | While autocomplete suggestions are showing in the prompt input, accepts the selected suggestion. On most permission prompts, with Yes or No focused, opens a comment field on that option, and pressing it again closes the field. See add a comment when you answer a permission prompt |
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 is open, Esc closes the dialog. While a footer item is selected, such as a row in the subagent panel below the prompt, Esc deselects it instead of interrupting. On a permission prompt, Esc declines the action, the same as No without a comment |
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 |
Ctrl+Enter or Ctrl+X Ctrl+S | Send queued messages now | Sends your queued messages, and your draft with them, right away. When Claude Code sends what you queued covers what happens to the turn Claude is working on. In shell mode, the key only queues your command. In terminals that don’t report extended keys, Ctrl+Enter arrives as plain Enter; Ctrl+X Ctrl+S works in any terminal. Requires Claude Code v2.1.275 or later |
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. On a file permission prompt, the same key closes an open comment field. With no field open, it selects the option that allows the action for the rest of the session, when the prompt offers that option |
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 Opus 5.5, Sonnet 5.5, Haiku 5.5, or the Fable models, which always use 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 |