Skip to content

Keyboard Shortcuts

Essential keyboard shortcuts for Claude Code CLI.

Mode Control

ActionShortcutNotes
Toggle ModeShift+TabSwitch Chat/Plan/Auto
Exit ClaudeCtrl+DClean shutdown
Cancel OperationCtrl+CStop current task
Clear ScreenCtrl+LFresh workspace

Command History

ActionShortcutNotes
Previous CommandNavigate history backward
Next CommandNavigate history forward
Search HistoryCtrl+RFind previous commands
Command CompletionTabComplete partial commands

Text Editing

ActionShortcutNotes
Start of LineCtrl+AJump to beginning
End of LineCtrl+EJump to end
Delete to EndCtrl+KClear rest of line
Delete LineCtrl+UClear entire line

Mode-Specific Shortcuts

Plan Mode

ActionKeyResult
Approve PlanyExecute the plan
Reject PlannRequest alternative
Edit PlaneModify 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 Code

Built with VitePress and powered by Claude Code