Keyboard Shortcuts
Essential keyboard shortcuts for Claude Code CLI.
Mode Control
| Action | Shortcut | Notes |
|---|---|---|
| Toggle Mode | Shift+Tab | Switch Chat/Plan/Auto |
| Exit Claude | Ctrl+D | Clean shutdown |
| Cancel Operation | Ctrl+C | Stop current task |
| Clear Screen | Ctrl+L | Fresh workspace |
Command History
| Action | Shortcut | Notes |
|---|---|---|
| Previous Command | ↑ | Navigate history backward |
| Next Command | ↓ | Navigate history forward |
| Search History | Ctrl+R | Find previous commands |
| Command Completion | Tab | Complete partial commands |
Text Editing
| Action | Shortcut | Notes |
|---|---|---|
| Start of Line | Ctrl+A | Jump to beginning |
| End of Line | Ctrl+E | Jump to end |
| Delete to End | Ctrl+K | Clear rest of line |
| Delete Line | Ctrl+U | Clear entire line |
Mode-Specific Shortcuts
Plan Mode
| Action | Key | Result |
|---|---|---|
| Approve Plan | y | Execute the plan |
| Reject Plan | n | Request alternative |
| Edit Plan | e | Modify before proceeding |
Command Completion
bash
/ Tab completion shows all commands
/spec Tab → /spec-generate, /spec-implement, etc.
/git Tab → /git-status, /git-commit, etc.
/project Tab → /project-init, /project-next, etc.Quick Reference
Essential Daily Shortcuts:
bash
Shift+Tab Toggle between Chat/Plan/Auto modes
Ctrl+R Search command history
↑/↓ Navigate command history
Tab Complete commands
Ctrl+C Cancel current operation
Ctrl+D Exit Claude CodeRelated
- Chat Modes - How modes affect shortcuts
- Slash Commands - Command shortcuts for common tasks
- CLI Reference - Complete command documentation