Claude Code

Claude Code Shortcuts

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

Source: Official documentation · Updated 2026-06

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.

  • Interrupt / cancel current operationCtrlC
  • Open Claude Code panelCtrlShiftPClaude
  • List all slash commands/
  • Non-interactive print modeclaude-p"prompt"
  • Exit Claude CodeCtrlD
  • Insert newline without submittingShiftEnter

CLI Session

10 shortcuts
Interrupt / cancel current operation
CtrlC
Exit Claude Code
CtrlD
Insert newline without submitting
ShiftEnter
Search command history
CtrlR
Move back one word
AltB
Move forward one word
AltF
Delete to beginning of line
CtrlU
Delete word backward
CtrlW
Kill background subagents
CtrlXCtrlK
Show keyboard shortcut help
?

VS Code Extension

5 shortcuts
Open Claude Code panel
CtrlShiftPClaude
Focus Claude input box
CtrlEsc
Open new Claude tab
CtrlShiftEsc
Start new conversation
CtrlN
Insert @mention reference
AltK

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.

See also

No shortcuts match your search.