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.
Claude Code Keyboard Shortcuts: Speed Up Your Workflow 10x
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.
Essential Shortcuts
These are the shortcuts you'll use constantly. Memorize these first.
Session Control
| 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 |
Navigation
| 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) |
Input Editing
| 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 |
Multi-line Input
| 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 |
Command-Specific Shortcuts
Slash Commands
| 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
File Operations
| Shortcut | Action |
|---|---|
/read + Tab | Autocomplete file path |
/edit + Tab | Autocomplete file path |
/find + Tab | Autocomplete glob pattern |
Ctrl+O | Quick open file |
Git Operations
| Shortcut | Action |
|---|---|
/git<Tab> | Git command suggestions |
/commit<Enter> | Quick commit |
/diff<Enter> | Show changes |
Navigation Shortcuts
Conversation Navigation
| 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 |
Output Navigation
| 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 |
Editing Shortcuts
Text Manipulation
| Shortcut | Action |
|---|---|
Ctrl+T | Transpose characters |
Alt+T | Transpose words |
Alt+U | Uppercase word |
Alt+L | Lowercase word |
Alt+C | Capitalize word |
Selection (in multi-line mode)
| 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 |
Copy/Paste
| Shortcut | Action |
|---|---|
Ctrl+C | Copy selection (or cancel if nothing selected) |
Ctrl+V | Paste |
Ctrl+Shift+V | Paste without formatting |
Ctrl+X | Cut selection |
Terminal Integration Shortcuts
These work when Claude Code interacts with your terminal:
Process Control
| Shortcut | Action |
|---|---|
Ctrl+C | Send SIGINT (interrupt) |
Ctrl+Z | Send SIGTSTP (suspend) |
Ctrl+\ | Send SIGQUIT |
Ctrl+D | Send EOF |
Terminal Output
| Shortcut | Action |
|---|---|
Ctrl+S | Pause output |
Ctrl+Q | Resume output |
Ctrl+L | Clear and redraw |
Advanced Shortcuts
Session Management
| Shortcut | Action |
|---|---|
Ctrl+Shift+S | Save session |
Ctrl+Shift+O | Open saved session |
Ctrl+Shift+N | New session |
Ctrl+Shift+R | Resume last session |
Mode Switching
| Shortcut | Action |
|---|---|
Ctrl+/ | Toggle help overlay |
| `Ctrl+`` | Toggle debug mode |
Ctrl+Shift+P | Command palette |
Output Control
| Shortcut | Action |
|---|---|
Ctrl+Shift+C | Copy entire output |
Ctrl+Shift+E | Export conversation |
Ctrl+Shift+F | Find in output |
Workflow Patterns
Shortcuts alone aren't enough—you need patterns that combine them effectively.
Pattern 1: Rapid Code Review
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
Pattern 2: Quick File Exploration
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
Pattern 3: Iterative Development
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
Pattern 4: Multi-file Changes
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
Pattern 5: Debug Session
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 Mastery
Command history is your superpower. Master it.
History Navigation
Up Arrow → Previous command
Down Arrow → Next command
Ctrl+R → Reverse search
Ctrl+S → Forward search (after Ctrl+R)
History Search
Ctrl+R → "commit" # Find commit commands
Ctrl+R → Ctrl+R # Previous match
Enter # Execute
Ctrl+G # Cancel search
History Expansion
!! # Repeat last command
!-2 # Command 2 back
!git # Last command starting with "git"
!?deploy # Last command containing "deploy"
Autocomplete Mastery
Tab Completion
/com<Tab> → /commit
/read src/c<Tab> → /read src/components/
/read src/c<Tab><Tab> → Show all matches
Smart Suggestions
Ctrl+Space # Show suggestions
Arrow keys # Navigate suggestions
Enter # Select suggestion
Escape # Dismiss suggestions
Path Completion
./src/<Tab> # Complete directory
../<Tab> # Parent directory
~/<Tab> # Home directory
/<Tab> # Root directory
Multi-line Input Techniques
Writing Long Prompts
Shift+Enter # New line
Shift+Enter # Another line
Tab # Indent
Shift+Tab # Unindent
Enter # Submit all
Code Blocks in Input
```javascript<Shift+Enter>
function example() {<Shift+Enter>
return true;<Shift+Enter>
}<Shift+Enter>
```<Enter>
Pasting Multi-line Content
Ctrl+V # Paste preserves newlines
Ctrl+Shift+V # Paste as plain text
Customization
Creating Aliases
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'"
Keyboard Macros (iTerm2/Terminal)
Configure terminal to send key sequences:
Cmd+R → "claude --resume\n"
Cmd+D → "/deploy staging\n"
Cmd+T → "/test\n"
Custom Key Bindings
Create ~/.claude/keybindings.json:
{
"ctrl+shift+r": "/review",
"ctrl+shift+d": "/deploy",
"ctrl+shift+t": "/test",
"ctrl+shift+c": "/commit"
}
Speed Techniques
1. Never Type Full Commands
# Slow
/commit
# Fast
/com<Tab>
2. Use History, Don't Retype
# Slow
[Type same command again]
# Fast
Up Arrow → Enter
3. Chain with &&
# Slow
/test
[wait]
/build
[wait]
/deploy
# Fast
"Run tests, then build, then deploy to staging"
4. Multi-line for Complex Requests
# 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
5. Abort Early, Iterate Fast
# See wrong direction? Don't wait.
Ctrl+C → "Actually, I meant..." → Enter
Troubleshooting
Shortcuts Not Working
- Check terminal emulator settings
- Verify no conflicting key bindings
- Try alternative shortcuts (Ctrl vs Cmd on Mac)
Common Conflicts
| 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) |
Platform-Specific Notes
macOS:
Cmdoften works whereCtrlis shownOption=Altfor word operations- iTerm2 may need "Send Escape Sequence" for Alt
Windows:
- Windows Terminal works best
- Some shortcuts conflict with Windows system shortcuts
- Consider WSL for full Linux shortcut support
Linux:
- Most shortcuts work as documented
- Check your terminal emulator's settings
- GNOME Terminal, Konsole, Alacritty all work well
Quick Reference Card
Print this or save it nearby:
Must-Know
| Action | Shortcut |
|---|---|
| Cancel | Ctrl+C |
| Exit | Ctrl+D |
| Clear | Ctrl+L |
| Previous | Up Arrow |
| Search history | Ctrl+R |
| New line | Shift+Enter |
| Submit | Enter |
Navigation
| Action | Shortcut |
|---|---|
| Start of line | Ctrl+A |
| End of line | Ctrl+E |
| Delete word | Ctrl+W |
| Delete to end | Ctrl+K |
Commands
| Action | Shortcut |
|---|---|
| Autocomplete | Tab |
| Suggestions | Ctrl+Space |
| Execute | Enter |
Conclusion
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.