Skip to content

Keyboard Shortcuts

Essential keyboard shortcuts for Claude Code CLI.

Session Control

ActionShortcut
Toggle ModeShift+Tab
Toggle Verbose OutputCtrl+O
Toggle Extended ThinkingOption+T (macOS) / Alt+T (Linux/Windows)
Exit ClaudeCtrl+D
Cancel OperationCtrl+C
Clear ScreenCtrl+L

Command History & Completion

ActionShortcut
Previous Command
Next Command
Search HistoryCtrl+R
Command CompletionTab

Typing / followed by Tab shows available commands. Partial names autocomplete: /spec + Tab shows /spec-generate, /spec-implement, etc.

Plan Mode Responses

Inside Plan Mode, Claude presents a plan and waits for your input. Use these keys to respond to the prompt:

KeyAction
yApprove and execute the plan
nReject and request an alternative
eEdit the plan before executing
Ctrl+GOpen the plan editor mid-session

Built with VitePress and powered by Claude Code