Claude Code

Claude Code Shortcuts

Claude Code keyboard shortcuts for the CLI, VS Code extension, slash commands and CLI flags.

Source: Official documentation · Updated 2025-05

Shortcuts
4
Categories

Cheat sheet guide

Claude Code shortcuts worth learning first

This page collects 39 searchable Claude Code keyboard shortcuts across 4 categories. Start with the shortcuts for CLI Session, VS Code Extension, Slash Commands, CLI Flags, then print the cheat sheet once the important ones are worth keeping nearby.

  • Switch OS tabs for Windows, macOS, or Linux shortcuts.
  • Use / to jump to search instantly.
  • Use Compare mode when moving between machines.
  • Print or save the page as a compact PDF cheat sheet.
CLI Session 10 shortcuts
Interrupt / cancel current operation
Ctrl+C
Exit Claude Code
Ctrl+D
Insert newline without submitting
Shift+Enter
Search command history
Ctrl+R
Move back one word
Alt+B
Move forward one word
Alt+F
Delete to beginning of line
Ctrl+U
Delete word backward
Ctrl+W
Kill background subagents
Ctrl+XCtrl+K
Show keyboard shortcut help
?
VS Code Extension 5 shortcuts
Open Claude Code panel
Ctrl+Shift+PClaude
Focus Claude input box
Ctrl+Esc
Open new Claude tab
Ctrl+Shift+Esc
Start new conversation
Ctrl+N
Insert @mention reference
Alt+K
Slash Commands 16 shortcuts
List all slash commands
/
Initialize project memory (CLAUDE.md)
/init
Clear conversation, free context
/clear
Compact conversation to summary
/compact
Show context window usage
/context
Switch model
/model
Open settings (JSON)
/config
Open keybindings config
/keybindings
View / edit memory file
/memory
Manage tool permissions
/permissions
Manage MCP servers
/mcp
List background tasks
/tasks
Show active agents
/agents
Schedule loop iteration
/schedule
Exit and detach to background
/background
Authenticate account
/login
CLI Flags 8 shortcuts
Non-interactive print mode
claude-p"prompt"
Continue most recent conversation
claude--continue
Resume conversation by ID
claude--resumeID
Select model at launch
claude--modelMODEL
Set system prompt from file
claude--system-promptFILE
Add MCP server
claudemcpaddNAMECMD
List MCP servers
claudemcplist
Show version
claude--version

Frequently asked questions

What is the fastest way to find Claude Code shortcuts on this page?

Use the search box or press /, then type an action such as interrupt / cancel current operation.

Can I print this Claude Code shortcut cheat sheet?

Yes. Use the Print / PDF button or your browser print command to save a compact cheat sheet.

Does this page include Windows and Mac shortcuts for Claude Code?

Yes. Use the OS tabs to switch between Windows and macOS shortcuts. For example, Interrupt / cancel current operation is Ctrl+C on Windows and Ctrl+C on macOS where available.

Advertisement
No shortcuts match your search.