🔥 Launch tonight — Claude Code Power Prompts PDF 50p (just 50p tonight)30 battle-tested prompts · 8-page PDF · paste into CLAUDE.md · flat 50p tonight

Claude Code Keyboard Shortcuts

Updated May 2026 · REPL + VSCode extension shortcuts

Claude Code has two shortcut contexts: shortcuts inside the interactive REPL (terminal), and shortcuts in the VSCode extension (sidebar + inline). This page covers both.

Mac vs Linux/Windows: On Mac, use where these tables show Ctrl. The REPL shortcuts are the same across all platforms.

REPL Input Shortcuts

These shortcuts work in the Claude Code terminal REPL (the session after running claude).

ShortcutAction
EnterSubmit message / confirm action
Shift+EnterNew line in multi-line input (does NOT submit)
Ctrl+CCancel current input or interrupt running task
Ctrl+DExit the REPL session
/ Navigate input history (previous/next messages)
Ctrl+RFuzzy search input history (like bash reverse-i-search)
Ctrl+LClear terminal screen (session context preserved)
TabAutocomplete slash commands and file paths
Ctrl+AMove cursor to start of line
Ctrl+EMove cursor to end of line
Ctrl+KDelete from cursor to end of line
Ctrl+UDelete entire line
Ctrl+WDelete previous word
Ctrl+ZBackground the REPL (use fg to return)
EscCancel current suggestion / close autocomplete

During Task Execution

When Claude Code is actively running a task (reading files, making edits):

ShortcutAction
Ctrl+CInterrupt the task. Claude will stop mid-action and show what was done so far.
y then EnterApprove a proposed change (when Claude shows a diff and asks "Apply?").
n then EnterReject a proposed change. Claude will ask for alternative instructions.
e then EnterOpen the proposed change in your editor before deciding.
a then EnterApprove all remaining changes in this task (skip individual confirmations).
q then EnterQuit the current task, reject all pending changes.
Confirmation shortcuts: When Claude shows a confirmation prompt, you usually only need to type the first letter and press Enter. Claude accepts yes, y, no, n, edit, e, all, a.

VSCode Extension Shortcuts

After installing the Claude Code VSCode extension. These are the defaults — all are rebindable via keybindings.json.

ShortcutAction
Ctrl+Shift+COpen Claude Code panel (sidebar)
Ctrl+Shift+ASend active file to Claude ("edit this file")
Ctrl+Shift+RReview active file
Ctrl+Shift+EExplain selected code
Ctrl+Shift+FFix selected code / error under cursor
Ctrl+`Toggle integrated terminal (standard VSCode)
Ctrl+Shift+DShow diff of Claude's last edit
Ctrl+ZUndo Claude's last edit (standard undo, works with extension edits)
Ctrl+Shift+PCommand Palette — search "Claude" to see all extension commands

Custom Keybindings (VSCode)

Add to your keybindings.json (Ctrl+Shift+P → "Open Keyboard Shortcuts JSON"):

[
  // Send active file to Claude for editing
  {
    "key": "ctrl+shift+a",
    "command": "workbench.action.terminal.sendSequence",
    "args": { "text": "claude edit ${file}\n" }
  },
  // Review active file
  {
    "key": "ctrl+shift+r",
    "command": "workbench.action.terminal.sendSequence",
    "args": { "text": "claude review ${file}\n" }
  },
  // Fix current file (on test failure or lint error)
  {
    "key": "ctrl+shift+f",
    "command": "workbench.action.terminal.sendSequence",
    "args": { "text": "claude /fix\n" }
  },
  // Launch Claude in terminal
  {
    "key": "ctrl+alt+c",
    "command": "workbench.action.terminal.sendSequence",
    "args": { "text": "claude\n" }
  }
]

Terminal Multiplexer Tips (tmux / screen)

Many developers run Claude Code in tmux. Key combinations to be aware of:

→ Next: Workflow Tips

← Back to Home