› Claude Code

Claude Code Shortcuts

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

Source: Official documentation · Dataset date 2026-06

39
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 panelCtrlShiftP→Claude
  • 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
Ctrl+C
Exit Claude Code
CtrlD
Ctrl+D
Insert newline without submitting
ShiftEnter
Shift+Enter
Search command history
CtrlR
Ctrl+R
Move back one word
AltB
Alt+B
Move forward one word
AltF
Alt+F
Delete to beginning of line
CtrlU
Ctrl+U
Delete word backward
CtrlW
Ctrl+W
Kill background subagents
CtrlXCtrlK
Ctrl+X Ctrl+K
Show keyboard shortcut help
?

VS Code Extension

5 shortcuts
Open Claude Code panel
CtrlShiftP→Claude
Ctrl+Shift+P · Cmd+Shift+P
Focus Claude input box
CtrlEsc
Ctrl+Esc · Cmd+Esc
Open new Claude tab
CtrlShiftEsc
Ctrl+Shift+Esc · Cmd+Shift+Esc
Start new conversation
CtrlN
Ctrl+N · Cmd+N
Insert @mention reference
AltK
Alt+K · Opt+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.

Which operating systems are included for Claude Code?

This reference includes shortcuts for Windows · macOS · Linux. Availability depends on the action and app version.

See also

Explore shortcuts by key

Key lookup

No shortcuts match your search.