Claude Code CLI Keyboard Shortcuts
Build and debug code with an AI agent in your terminal.
⌘K
61 shortcuts / 7 sections
Session and modes
22Interrupt operation or clear input
CtrlCControl CWhen idle, a second press exits
Stop all background subagents
CtrlXControl XthenCtrlKControl KRepeat the sequence within 3 seconds to confirm
Exit session
CtrlDControl DEmpty prompt: press twice within 800ms
Edit prompt in external editor
CtrlGControl G
Edit prompt in external editor
CtrlXControl XthenCtrlEControl E
Redraw screen
CtrlLControl L
Toggle transcript viewer
CtrlOControl O
Search command history
CtrlRControl R
Paste image from clipboard
CtrlVControl V
Background running tasks
CtrlBControl BPress twice in tmux
Toggle task checklist
CtrlTControl T
Stash or restore prompt
CtrlSControl S
Interrupt response or close dialog
⎋Escape
Clear draft or open rewind menu
⎋Escapethen⎋EscapeRewind opens when the prompt is empty
Send queued messages now
Ctrl↩Control Enterv2.1.275+; terminal must report extended keys
Send queued messages now
CtrlXControl XthenCtrlSControl SRequires v2.1.275 or later
Cycle permission modes
Shift⇥Shift Tab
Switch model
AltPAlt P
Toggle extended thinking
AltTAlt TFor models that support disabling thinking
Toggle fast mode
AltOAlt O
Paste image from clipboard
AltVAlt VAlso supported in WSL
Cycle permission modes
AltMAlt MFallback when Node or Bun does not enable VT input
Input and dialogs
8Move up or recall previous input
↑Up ArrowHistory is reached at the first visual row
Move up or recall previous input
CtrlPControl PHistory is reached at the first visual row
Move down or recall next input
↓Down ArrowHistory is reached at the last visual row
Move down or recall next input
CtrlNControl NHistory is reached at the last visual row
Previous dialog tab
←Left ArrowWhen the tab row has focus
Next dialog tab
→Right ArrowWhen the tab row has focus
Accept autocomplete suggestion
⇥TabWhen suggestions are visible
Toggle permission answer comment
⇥TabWhen Yes or No is focused
Text editing
12Move to line start
CtrlAControl A
Move to line end
CtrlEControl E
Delete to line end
CtrlKControl K
Delete to line start
CtrlUControl U
Delete to previous whitespace
CtrlWControl W
Paste deleted text
CtrlYControl Y
Cycle paste history
AltYAlt YAfter Ctrl+Y; set Option as Meta on macOS
Move back one word
AltBAlt B
Move to word end
AltFAlt F
Delete to word end
AltDAlt D
Undo last input edit
CtrlShift-Control Shift -
Delete previous word
Ctrl⌫Control Backspace
Multiline input
3Insert new line
\\then↩EnterType a backslash, then press Enter
Insert new line
CtrlJControl J
Insert new line
Shift↩Shift EnterRequires a compatible or configured terminal
Quick commands
5Open command or skill menu
//At the start of the prompt
Enter shell mode
Shift1Shift 1Type ! at the start of the prompt
Mention a file path
Shift2Shift 2Type @ in the prompt
Enter emoji shortcode
Shift;Shift ;Type :name:; requires v2.1.217 or later
Toggle shortcut help
Shift/Shift /Type ? when the prompt is empty
Transcript viewer
9Toggle transcript shortcut help
Shift/Shift /Fullscreen renderer only
Jump to previous user prompt
Shift[Shift [Fullscreen renderer only
Jump to next user prompt
Shift]Shift ]Fullscreen renderer only
Toggle all transcript content
CtrlEControl EClassic renderer only
Write conversation to native scrollback
[[Fullscreen renderer only
Open conversation in external editor
VVFullscreen renderer only
Exit transcript viewer
QQ
Exit transcript viewer
CtrlCControl C
Exit transcript viewer
⎋Escape
Theme and voice
2Toggle code syntax highlighting
CtrlTControl TInside the /theme picker only
Voice dictation
Enable /voice, then hold Space or use /voice tap