Learn Keyboard Shortcuts
Claude Code supports common keyboard shortcuts to help you edit commands efficiently. Here are some useful shortcuts:
Key | Action |
---|---|
Ctrl+A | Beginning of line |
Ctrl+E | End of line |
Ctrl+W | Delete word |
Ctrl+U | Delete line |
Ctrl+K | Delete to end |
↑/↓ | Previous/Next command |
Tab | Auto-complete |
Ctrl+R | Search command history |
Esc | Cancel current command |
Esc Esc | Rewind command history & context |
💡 Since you spend a lot of time in the shell, mastering these shortcuts can significantly speed up your workflow.