Claude Code Keyboard Shortcuts: Speed Up Your Workflow 10x
Master all Claude Code keyboard shortcuts and productivity tips. Learn navigation, editing, and power user techniques to dramatically accelerate your workflow.
Master all Claude Code keyboard shortcuts and productivity tips. Learn navigation, editing, and power user techniques to dramatically accelerate your workflow.
The fastest Claude Code users rarely touch their mouse. They navigate, edit, and control sessions entirely through keyboard shortcuts. This guide covers every shortcut available—plus productivity patterns that compound your speed.
These are the shortcuts you'll use constantly. Memorize these first.
| Shortcut | Action |
|---|---|
Ctrl+C | Cancel current operation |
Ctrl+D | Exit Claude Code |
Ctrl+L | Clear screen |
Ctrl+Z | Undo last input |
Escape | Cancel current input / Close modal |
| Shortcut | Action |
|---|---|
Up Arrow | Previous message in history |
Down Arrow | Next message in history |
Ctrl+R | Search command history |
Ctrl+P | Previous command (same as Up) |
Ctrl+N | Next command (same as Down) |
| Shortcut | Action |
|---|---|
Ctrl+A | Move to start of line |
Ctrl+E | Move to end of line |
Ctrl+W | Delete word before cursor |
Ctrl+K | Delete from cursor to end |
Ctrl+U | Delete entire line |
Ctrl+Y | Paste deleted text |
| Shortcut | Action |
|---|---|
Shift+Enter | New line (don't submit) |
Enter | Submit message |
Ctrl+Enter | Submit message (alternative) |
Tab | Indent in multi-line mode |
Shift+Tab | Unindent in multi-line mode |
| Shortcut | Action |
|---|---|
/ | Start command mode |
Tab | Autocomplete command |
Ctrl+Space | Show command suggestions |
Escape | Exit command mode |
Pro tip: Type partial commands and Tab to complete:
/com<Tab> → /commit
/rev<Tab> → /review
| Shortcut | Action |
|---|---|
/read + Tab | Autocomplete file path |
/edit + Tab | Autocomplete file path |
/find + Tab | Autocomplete glob pattern |
Ctrl+O | Quick open file |
| Shortcut | Action |
|---|---|
/git<Tab> | Git command suggestions |
/commit<Enter> | Quick commit |
/diff<Enter> | Show changes |
| Shortcut | Action |
|---|---|
Page Up | Scroll up in conversation |
Page Down | Scroll down in conversation |
Home | Go to start of conversation |
End | Go to end of conversation |
Ctrl+Home | First message |
Ctrl+End | Last message |
| Shortcut | Action |
|---|---|
Space | Page down in output |
Shift+Space | Page up in output |
q | Quit pager (in long output) |
/ | Search in output (pager mode) |
n | Next search result |
N | Previous search result |
| Shortcut | Action |
|---|---|
Ctrl+T | Transpose characters |
Alt+T | Transpose words |
Alt+U | Uppercase word |
Alt+L | Lowercase word |
Alt+C | Capitalize word |
| Shortcut | Action |
|---|---|
Shift+Arrow | Extend selection |
Ctrl+Shift+Arrow | Select word |
Ctrl+A | Select all |
Ctrl+Shift+End | Select to end |
Ctrl+Shift+Home | Select to start |
| Shortcut | Action |
|---|---|
Ctrl+C | Copy selection (or cancel if nothing selected) |
Ctrl+V | Paste |
Ctrl+Shift+V | Paste without formatting |
Ctrl+X | Cut selection |
These work when Claude Code interacts with your terminal:
| Shortcut | Action |
|---|---|
Ctrl+C | Send SIGINT (interrupt) |
Ctrl+Z | Send SIGTSTP (suspend) |
Ctrl+\ | Send SIGQUIT |
Ctrl+D | Send EOF |
| Shortcut | Action |
|---|---|
Ctrl+S | Pause output |
Ctrl+Q | Resume output |
Ctrl+L | Clear and redraw |
| Shortcut | Action |
|---|---|
Ctrl+Shift+S | Save session |
Ctrl+Shift+O | Open saved session |
Ctrl+Shift+N | New session |
Ctrl+Shift+R | Resume last session |
| Shortcut | Action |
|---|---|
Ctrl+/ | Toggle help overlay |
| `Ctrl+`` | Toggle debug mode |
Ctrl+Shift+P | Command palette |
| Shortcut | Action |
|---|---|
Ctrl+Shift+C | Copy entire output |
Ctrl+Shift+E | Export conversation |
Ctrl+Shift+F | Find in output |
Shortcuts alone aren't enough—you need patterns that combine them effectively.
1. /git diff<Enter> # See changes
2. [Review output]
3. /review<Enter> # Get AI review
4. [Read feedback]
5. Up Arrow → Enter # Re-run if needed
Shortcuts used: /, Enter, Up Arrow
1. /tree<Enter> # See structure
2. /read src/com<Tab> # Autocomplete path
3. Ctrl+R → "read" # Find previous reads
4. /grep "function"<Enter> # Search content
Shortcuts used: /, Tab, Ctrl+R, Enter
1. Write code request
2. [Claude generates code]
3. /test<Enter> # Run tests
4. [See failures]
5. Up Up Enter # Previous prompt
6. "Fix the test failures" # Iterate
7. Repeat 3-6
Shortcuts used: /, Enter, Up Arrow
1. Describe change
2. [Claude edits file 1]
3. Ctrl+L # Clear screen
4. "Now update file 2"
5. [Claude edits file 2]
6. /git diff<Enter> # Review all changes
7. /commit<Enter> # Commit when satisfied
Shortcuts used: Ctrl+L, /, Enter
1. Paste error message
2. [Claude analyzes]
3. /read<Tab><Tab> # Navigate to file
4. [Review code]
5. Shift+Enter # Multi-line input
"The error occurs when..."
"I expect..."
Enter # Submit
6. [Claude fixes]
7. /test<Enter> # Verify fix
Shortcuts used: Tab, Shift+Enter, Enter, /
Command history is your superpower. Master it.
Up Arrow → Previous command
Down Arrow → Next command
Ctrl+R → Reverse search
Ctrl+S → Forward search (after Ctrl+R)
Ctrl+R → "commit" # Find commit commands
Ctrl+R → Ctrl+R # Previous match
Enter # Execute
Ctrl+G # Cancel search
!! # Repeat last command
!-2 # Command 2 back
!git # Last command starting with "git"
!?deploy # Last command containing "deploy"
/com<Tab> → /commit
/read src/c<Tab> → /read src/components/
/read src/c<Tab><Tab> → Show all matches
Ctrl+Space # Show suggestions
Arrow keys # Navigate suggestions
Enter # Select suggestion
Escape # Dismiss suggestions
./src/<Tab> # Complete directory
../<Tab> # Parent directory
~/<Tab> # Home directory
/<Tab> # Root directory
Shift+Enter # New line
Shift+Enter # Another line
Tab # Indent
Shift+Tab # Unindent
Enter # Submit all
```javascript<Shift+Enter>
function example() {<Shift+Enter>
return true;<Shift+Enter>
}<Shift+Enter>
```<Enter>
Ctrl+V # Paste preserves newlines
Ctrl+Shift+V # Paste as plain text
Add to your shell config:
# ~/.zshrc or ~/.bashrc
# Quick Claude commands
alias c="claude"
alias cr="claude --resume"
alias cc="claude --continue"
# Project shortcuts
alias dev="claude 'Start development session'"
alias review="claude '/review'"
Configure terminal to send key sequences:
Cmd+R → "claude --resume\n"
Cmd+D → "/deploy staging\n"
Cmd+T → "/test\n"
Create ~/.claude/keybindings.json:
{
"ctrl+shift+r": "/review",
"ctrl+shift+d": "/deploy",
"ctrl+shift+t": "/test",
"ctrl+shift+c": "/commit"
}
# Slow
/commit
# Fast
/com<Tab>
# Slow
[Type same command again]
# Fast
Up Arrow → Enter
# Slow
/test
[wait]
/build
[wait]
/deploy
# Fast
"Run tests, then build, then deploy to staging"
# Slow
"Fix the auth bug"
[wait]
"Also update the tests"
[wait]
"And the documentation"
# Fast
Shift+Enter to build prompt:
"1. Fix the auth bug in login.ts
2. Update the test file
3. Add JSDoc comments"
Enter
# See wrong direction? Don't wait.
Ctrl+C → "Actually, I meant..." → Enter
| Conflict | Solution |
|---|---|
Ctrl+C copies instead of cancels | Disable in terminal settings |
Ctrl+R opens browser dev tools | Use different browser/terminal |
| Arrow keys insert characters | Check terminal mode (application vs normal) |
macOS:
Cmd often works where Ctrl is shownOption = Alt for word operationsWindows:
Linux:
Print this or save it nearby:
| Action | Shortcut |
|---|---|
| Cancel | Ctrl+C |
| Exit | Ctrl+D |
| Clear | Ctrl+L |
| Previous | Up Arrow |
| Search history | Ctrl+R |
| New line | Shift+Enter |
| Submit | Enter |
| Action | Shortcut |
|---|---|
| Start of line | Ctrl+A |
| End of line | Ctrl+E |
| Delete word | Ctrl+W |
| Delete to end | Ctrl+K |
| Action | Shortcut |
|---|---|
| Autocomplete | Tab |
| Suggestions | Ctrl+Space |
| Execute | Enter |
Keyboard shortcuts aren't just about speed—they're about flow. When you don't have to think about how to interact with Claude Code, you can focus entirely on what you're building.
Start with the essentials: Ctrl+C, Up Arrow, Tab, Enter. These four shortcuts cover 80% of interactions. Then gradually add more as they become natural.
The goal isn't to memorize a hundred shortcuts—it's to make the ones you need automatic. Pick the patterns that match your workflow and practice them until they're muscle memory.
Speed follows fluency. Fluency follows practice.
Ready for advanced parallelism? Check out our Subagent Patterns Guide for multi-agent orchestration techniques.
Build Model Context Protocol (MCP) servers and integrations. Create custom tools and capabilities for Claude.