Skip to content
Hotkys
All apps
Claude Code CLI icon

Claude Code CLI Keyboard Shortcuts

Build and debug code with an AI agent in your terminal.

63 shortcuts / 7 sections

Session and modes

22
Interrupt operation or clear input
Control CWhen idle, a second press exits
Stop all background subagents
Control XthenControl KRepeat the sequence within 3 seconds to confirm
Exit session
Control DEmpty prompt: press twice within 800ms
Edit prompt in external editor
Control G
Edit prompt in external editor
Control XthenControl E
Redraw screen
Control L
Toggle transcript viewer
Control O
Search command history
Control R
Paste image from clipboard
Control V
Background running tasks
Control BPress twice in tmux
Toggle task checklist
Control T
Stash or restore prompt
Control S
Interrupt response or close dialog
Escape
Clear draft or open rewind menu
EscapethenEscapeRewind opens when the prompt is empty
Send queued messages now
Control Enterv2.1.275+; terminal must report extended keys
Send queued messages now
Control XthenControl SRequires v2.1.275 or later
Cycle permission modes
Shift Tab
Switch model
Option PRequires Option as Meta in the terminal
Toggle extended thinking
Option TFor models that support disabling thinking
Toggle fast mode
Option O
Suspend Claude Code
Control ZRun fg in the shell to resume
Paste image from clipboard
Command ViTerm2 only

Input and dialogs

8
Move up or recall previous input
Up ArrowHistory is reached at the first visual row
Move up or recall previous input
Control 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
Control 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

13
Move to line start
Control A
Move to line end
Control E
Delete to line end
Control K
Delete to line start
Control U
Delete to previous whitespace
Control W
Paste deleted text
Control Y
Cycle paste history
Option YAfter Ctrl+Y; set Option as Meta on macOS
Move back one word
Option BRequires Option as Meta in the terminal
Move to word end
Option FRequires Option as Meta in the terminal
Delete to word end
Option DRequires Option as Meta in the terminal
Undo last input edit
Control Shift -
Delete to line start
Command BackspaceiTerm2 and Terminal.app
Delete previous word
Option Backspace

Multiline input

4
Insert new line
\thenEnterType a backslash, then press Enter
Insert new line
Control J
Insert new line
Shift EnterRequires a compatible or configured terminal
Insert new line
Option EnterRequires Option as Meta in the terminal

Quick commands

5
Open command or skill menu
/At the start of the prompt
Enter shell mode
Shift 1Type ! at the start of the prompt
Mention a file path
Shift 2Type @ in the prompt
Enter emoji shortcode
Shift ;Type :name:; requires v2.1.217 or later
Toggle shortcut help
Shift /Type ? when the prompt is empty

Transcript viewer

9
Toggle transcript shortcut help
Shift /Fullscreen renderer only
Jump to previous user prompt
Shift [Fullscreen renderer only
Jump to next user prompt
Shift ]Fullscreen renderer only
Toggle all transcript content
Control EClassic renderer only
Write conversation to native scrollback
[Fullscreen renderer only
Open conversation in external editor
VFullscreen renderer only
Exit transcript viewer
Q
Exit transcript viewer
Control C
Exit transcript viewer
Escape

Theme and voice

2
Toggle code syntax highlighting
Control TInside the /theme picker only
Voice dictation
Enable /voice, then hold Space or use /voice tap