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