All skills
Skillintermediate

Interactive mode

> ## Documentation Index > Fetch the complete documentation index at: https://code.claude.com/docs/llms.txt > Use this file to discover all available pages before exploring further.

Claude Code Knowledge Pack7/10/2026

Overview

Documentation Index

Fetch the complete documentation index at: https://code.claude.com/docs/llms.txt Use this file to discover all available pages before exploring further.

Interactive mode

Complete reference for keyboard shortcuts, input modes, and interactive features in Claude Code sessions.

Keyboard shortcuts

Keyboard shortcuts may vary by platform and terminal. Press ? to see available shortcuts for your environment.

macOS users: Option/Alt key shortcuts (Alt+B, Alt+F, Alt+Y, Alt+M, Alt+P, Alt+T) require configuring Option as Meta in your terminal:

  • iTerm2: Settings → Profiles → Keys → General → set Left/Right Option key to "Esc+"
  • Apple Terminal: Settings → Profiles → Keyboard → check "Use Option as Meta Key"
  • VS Code: set "terminal.integrated.macOptionIsMeta": true in VS Code settings

See Terminal configuration for details.

General controls

ShortcutDescriptionContext
Ctrl+CCancel current input or generationStandard interrupt
Ctrl+X Ctrl+KKill all background agents. Press twice within 3 seconds to confirmBackground agent control
Ctrl+DExit Claude Code sessionEOF signal
Ctrl+G or Ctrl+X Ctrl+EOpen in default text editorEdit 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; the comment block is stripped when you save
Ctrl+LClear prompt input and redraw screenClears typed text and forces a full terminal redraw. Conversation history is kept. Use this to recover if the display becomes garbled or partially blank
Ctrl+OToggle transcript viewerShows detailed tool usage and execution. Also expands MCP calls, which collapse to a single line like "Called slack 3 times" by default
Ctrl+RReverse search command historySearch through previous commands interactively
Ctrl+V or Cmd+V (iTerm2) or Alt+V (Windows)Paste image from clipboardInserts an [Image #N] chip at the cursor so you can reference it positionally in your prompt
Ctrl+BBackground running tasksBackgrounds bash commands and agents. Tmux users press twice
Ctrl+TToggle task listShow or hide the task list in the terminal status area
Left/Right arrowsCycle through dialog tabsNavigate between tabs in permission dialogs and menus
Up/Down arrows or Ctrl+P/Ctrl+NMove cursor or navigate command historyIn multiline input, first moves the cursor within the prompt. Once the cursor is already on the top or bottom edge, pressing again navigates command history
Esc + EscRewind or summarizeRestore code and/or conversation to a previous point, or summarize from a selected message
Shift+Tab or Alt+M (some configurations)Cycle permission modesCycle through default, acceptEdits, plan, and any modes you have enabled, such as auto or bypassPermissions. See permission modes.
Option+P (macOS) or Alt+P (Windows/Linux)Switch modelSwitch models without clearing your prompt
Option+T (macOS) or Alt+T (Windows/Linux)Toggle extended thinkingEnable or disable extended thinking mode. On macOS, configure your terminal to send Option as Meta for this shortcut to work
Option+O (macOS) or Alt+O (Windows/Linux)Toggle fast modeEnable or disable fast mode

Text editing

ShortcutDescriptionContext
Ctrl+AMove cursor to start of current lineIn multiline input, moves to the start of the current logical line
Ctrl+EMove cursor to end of current lineIn multiline input, moves to the end of the current logical line
Ctrl+KDelete to end of lineStores deleted text for pasting
Ctrl+UDelete from cursor to line startStores deleted text for pasting. Repeat to clear across lines in multiline input. On macOS, terminal emulators including iTerm2 and Terminal.app map Cmd+Backspace to this shortcut
Ctrl+WDelete previous wordStores deleted text for pasting. On Windows, Ctrl+Backspace also deletes the previous word
Ctrl+YPaste deleted textPaste text deleted with Ctrl+K, Ctrl+U, or Ctrl+W
Alt+Y (after Ctrl+Y)Cycle paste historyAfter pasting, cycle through previously deleted text. Requires Option as Meta on macOS
Alt+BMove cursor back one wordWord navigation. Requires Option as Meta on macOS
Alt+FMove cursor forward one wordWord navigation. Requires Option as Meta on macOS

Theme and display

ShortcutDescriptionContext
Ctrl+TToggle syntax highlighting for code blocksOnly works inside the /theme picker menu. Controls whether code in Claude's responses uses syntax coloring

Multiline input

MethodShortcutContext
Quick escape\\ + EnterWorks in all terminals
Option keyOption+EnterAfter enabling Option as Meta on macOS
Shift+EnterShift+EnterNative in iTerm2, WezTerm, Ghostty, Kitty, Warp, Apple Terminal
Control sequenceCtrl+JWorks in any terminal without configuration
Paste modePaste directlyFor code blocks, logs

Shift+Enter works without configuration in iTerm2, WezTerm, Ghostty, Kitty, Warp, and Apple Terminal. For VS Code, Cursor, Windsurf, Alacritty, and Zed, run /terminal-setup to install the binding.

Quick commands

ShortcutDescriptionNotes
/ at startCommand or skillSee commands and skills
! at startBash modeRun commands directly and add execution output to the session
@File path mentionTrigger file path autocomplete

Transcript viewer

When the transcript viewer is open (toggled with Ctrl+O), these shortcuts are available. Ctrl+E can be rebound via transcript:toggleShowAll.

ShortcutDescription
Ctrl+EToggle show all content
[Write the full conversation to