Skip to main content

Learn Keyboard Shortcuts

Claude Code supports common keyboard shortcuts to help you edit commands efficiently. Here are some useful shortcuts:

KeyAction
Ctrl+ABeginning of line
Ctrl+EEnd of line
Ctrl+WDelete word
Ctrl+UDelete line
Ctrl+KDelete to end
↑/↓Previous/Next command
TabAuto-complete
Ctrl+RSearch command history
EscCancel current command
Esc EscRewind command history & context

💡 Since you spend a lot of time in the shell, mastering these shortcuts can significantly speed up your workflow.