Keyboard Shortcuts
Essential keyboard shortcuts for Claude Code CLI.
Session Control
| Action | Shortcut |
|---|---|
| Toggle Mode | Shift+Tab |
| Toggle Verbose Output | Ctrl+O |
| Toggle Extended Thinking | Option+T (macOS) / Alt+T (Linux/Windows) |
| Exit Claude | Ctrl+D |
| Cancel Operation | Ctrl+C |
| Clear Screen | Ctrl+L |
Command History & Completion
| Action | Shortcut |
|---|---|
| Previous Command | ↑ |
| Next Command | ↓ |
| Search History | Ctrl+R |
| Command Completion | Tab |
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:
| Key | Action |
|---|---|
y | Approve and execute the plan |
n | Reject and request an alternative |
e | Edit the plan before executing |
Ctrl+G | Open the plan editor mid-session |
Related
- Permission Modes - How modes affect what runs without prompting
- Slash Commands - Commands for common tasks
- CLI Reference - Complete documentation