Skip to content

↑↓ moveEnter openEsc close

Claude Code keyboard shortcuts cheat sheet

Every default Claude Code shortcut on one printable page. Choose your system, then print or save as PDF.

Claude Code keyboard shortcuts

Windows · version 2.x · 34 shortcuts

Hotkeypediahotkeypedia.com

Controlling Claude

  • Stop Claude while it is workingEscEscEsc
  • Rewind the conversation or codeEsc,EscEsc,EscEsc,Esc
  • Cycle permission modes (normal, auto-accept, plan)ShiftTabShiftTabShiftTab
  • Switch the modelOptionPAltPAltP
  • Turn extended thinking on or offOptionTAltTAltT
  • Move a running command to the backgroundCtrlBCtrlBCtrlB
  • Show or hide the to-do listCtrlTCtrlTCtrlT
  • Show the full transcriptCtrlOCtrlOCtrlO

Input

  • New line in the promptShiftEnterShiftEnterShiftEnter
  • Paste an image from the clipboardCtrlVCtrlVCtrlV
  • Edit the prompt in your text editorCtrlGCtrlGCtrlG
  • Cancel the input or generationCtrlCCtrlCCtrlC
  • Exit Claude CodeCtrlDCtrlDCtrlD
  • Clear the terminal screenCtrlLCtrlLCtrlL

History

  • Previous prompt↑↑↑
  • Next prompt↓↓↓
  • Search prompt historyCtrlRCtrlRCtrlR

Prompt shortcuts

  • Show the shortcut listShift/Shift/Shift/
  • Open slash commands///
  • Run a shell command directly (bash mode)Shift1Shift1Shift1
  • Mention a file or folderShift2Shift2Shift2
  • Accept the suggestion or file pathTabTabTab
  • New line (works in any terminal)CtrlJCtrlJCtrlJ
  • New line with Option+EnterOptionEnter——

Editing the prompt

  • Go to the start of the lineCtrlACtrlACtrlA
  • Go to the end of the lineCtrlECtrlECtrlE
  • Back one wordOptionBAltBAltB
  • Forward one wordOptionFAltFAltF
  • Delete to the end of the lineCtrlKCtrlKCtrlK
  • Delete to the start of the lineCtrlUCtrlUCtrlU
  • Delete the previous wordCtrlWCtrlWCtrlW
  • Paste the text you deletedCtrlYCtrlYCtrlY
  • Cycle through earlier deleted textOptionYAltYAltY
  • Suspend Claude Code to the shellCtrlZ—CtrlZ
Default bindings for Claude Code, version 2.x, checked against Anthropic's documentation.hotkeypedia.com/claude-code/cheat-sheet/

Every default Claude Code shortcut in version 2.x, in the same groups as the full list. Pick a system, then print. The sheet is sized to fill a portrait A4 or Letter page (two pages for the longest apps); choose "Save as PDF" in the print dialog for a file. Rows showing a dash have no default binding on that system.