Skip to Content
ReferenceKeyboard Shortcuts

Keyboard Shortcuts

General

ShortcutDescription
EscClose dialogs and suggestions
Ctrl+CCancel ongoing request and clear input. Press twice to exit.
Ctrl+DExit if input is empty. Press twice to confirm.
Ctrl+LClear the screen
Ctrl+OToggle debug console
Ctrl+SDisable output truncation for long responses
Ctrl+TToggle tool descriptions
Shift+Tab (Tab on Windows)Cycle approval modes: plandefaultauto-edityolo

Input prompt

ShortcutDescription
EnterSubmit prompt
\ + Enter (at end of line)Insert a newline
Up Arrow / Ctrl+PNavigate input history up
Down Arrow / Ctrl+NNavigate input history down
Ctrl+RReverse search through history
TabAccept current autocomplete suggestion
! (empty input)Toggle shell mode
? (empty input)Toggle keyboard shortcuts display
Ctrl+A / HomeMove cursor to beginning of line
Ctrl+E / EndMove cursor to end of line
Ctrl+B / Move cursor left one character
Ctrl+F / Move cursor right one character
Ctrl+Left / Meta+BMove cursor left one word
Ctrl+Right / Meta+FMove cursor right one word
Ctrl+H / BackspaceDelete character to left
Ctrl+D / DeleteDelete character to right
Ctrl+W / Meta+BackspaceDelete word to left
Meta+Delete / Ctrl+DeleteDelete word to right
Ctrl+KDelete to end of line
Ctrl+UDelete to beginning of line
Ctrl+V (Windows: Alt+V)Paste clipboard (image pastes insert a file reference)
Ctrl+X / Meta+EnterOpen input in external editor
Ctrl+YRetry last failed request
Ctrl+Z / Ctrl+Shift+ZUndo / redo input
Esc (double)Clear input prompt

Suggestions

ShortcutDescription
Up ArrowNavigate suggestions up
Down ArrowNavigate suggestions down
Tab / EnterAccept selected suggestion

Radio button select

ShortcutDescription
Up Arrow / kMove selection up
Down Arrow / jMove selection down
EnterConfirm selection
1–9Select item by number

IDE integration

ShortcutDescription
Ctrl+GView context received from the IDE
Last updated on