Print this page, pin it next to your monitor, or bookmark it. These are the shortcuts that separate developers who are fast with AI tools from those who are constantly reaching for the mouse.
Shortcut Action Cmd/Ctrl+IOpen/close Agent chat panel Cmd/Ctrl+KInline edit (selection or cursor position) Cmd/Ctrl+EBackground Agent TabAccept autocomplete suggestion Cmd/Ctrl+.Toggle mode (Agent/Ask) Cmd/Ctrl+/Cycle between models Cmd/Ctrl+EnterAccept all changes Cmd/Ctrl+BackspaceReject all changes EscapeCancel current operation Cmd/Ctrl+Shift+PCommand palette
Shortcut Action EscapeStop Claude (not Ctrl+C) Escape twiceEdit previous message / jump to message list TabCommand/path completion Up/DownNavigate prompt history Ctrl+VPaste images (not Cmd+V on macOS) # at startQuick CLAUDE.md update / at startSlash command menu @ in messageReference a file \ + EnterNew line (all terminals) Ctrl+DExit session
Shortcut Action EnterSubmit prompt EscapeCancel current generation TabAutocomplete command/path Up/DownNavigate command history / at startSlash command menu Ctrl+CInterrupt / exit Ctrl+LClear screen
Action Windows/Linux macOS Open/close AI chat Ctrl+ICmd+IOpen/close AI chat (alt) Ctrl+LCmd+LBackground Agent Ctrl+ECmd+EToggle Agent/Ask mode Ctrl+.Cmd+.Cycle models Ctrl+/Cmd+/Cursor Settings Ctrl+Shift+JCmd+Shift+JVS Code Settings Ctrl+,Cmd+,Command Palette Ctrl+Shift+PCmd+Shift+P
Action Windows/Linux macOS Send message EnterEnterForce submit (override queue) Alt+EnterAlt+EnterCancel AI response Ctrl+Shift+BackspaceCmd+Shift+BackspaceAdd selection to chat Ctrl+Shift+LCmd+Shift+LPaste as context Ctrl+VCmd+VPaste to input (text only) Ctrl+Shift+VCmd+Shift+VAccept all changes Ctrl+EnterCmd+EnterReject all changes Ctrl+BackspaceCmd+BackspaceNext message TabTabPrevious message Shift+TabShift+TabToggle model Ctrl+Alt+/Cmd+Alt+/New chat Ctrl+N or Ctrl+RCmd+N or Cmd+RNew chat tab Ctrl+TCmd+TPrevious chat Ctrl+[Cmd+[Next chat Ctrl+]Cmd+]Close chat Ctrl+WCmd+WExit input field EscapeEscape
Action Windows/Linux macOS Open inline edit Ctrl+KCmd+KToggle focus (code/prompt) Ctrl+Shift+KCmd+Shift+KSubmit edit EnterEnterCancel edit Ctrl+Shift+BackspaceCmd+Shift+BackspaceQuick question about selection Alt+EnterAlt+Enter
Action Windows/Linux macOS Reference symbols @@Reference files ##Slash commands //Add selection to chat Ctrl+Shift+LCmd+Shift+LAdd selection to inline edit Ctrl+Shift+KCmd+Shift+KToggle reading strategy Ctrl+MCmd+MAccept next word (partial) Ctrl+RightCmd+RightSearch codebase Ctrl+EnterCmd+Enter
Action Windows/Linux macOS Accept full suggestion TabTabAccept next word Ctrl+RightCmd+RightReject suggestion EscapeEscape
Action Windows/Linux macOS AI command generation Ctrl+KCmd+KExecute generated command Ctrl+EnterCmd+EnterAccept command EscapeEscape
Shortcut Description EscapeStop Claude’s current operation Escape twiceShow message list / edit previous message Ctrl+CCancel current input Ctrl+DExit Claude Code session Ctrl+LClear terminal screen (keeps conversation) Up/DownNavigate command history TabCommand and path completion
Method Shortcut Notes Backslash escape \ + EnterWorks in all terminals macOS default Option+EnterDefault on macOS After setup Shift+EnterRun /terminal-setup first Paste mode Direct paste For code blocks and logs
Prefix Action # at line startUpdate CLAUDE.md (prompts for file selection) / at line startOpen slash command menu @ in messageInclude file contents
Enable with /vim or configure permanently in /config.
Mode switching :
Command Action EscapeEnter NORMAL mode i / IInsert before cursor / at line start a / AInsert after cursor / at line end o / OOpen line below / above
Navigation (NORMAL mode) :
Command Action h/j/k/lLeft / Down / Up / Right w / e / bNext word / End of word / Previous word 0 / $ / ^Line start / Line end / First non-blank gg / GInput start / Input end
Editing (NORMAL mode) :
Command Action xDelete character dd / DDelete line / Delete to end dw / de / dbDelete word forward / to end / backward cc / CChange line / Change to end .Repeat last change
Shortcut Description EnterSubmit prompt EscapeCancel current generation Ctrl+CInterrupt / exit Ctrl+LClear terminal screen Up/DownNavigate command history TabAutocomplete commands and paths
Action Shortcut New task NSubmit prompt Enter or Cmd/Ctrl+EnterCancel task EscapeView diff DAccept changes ANavigate tasks Up/Down or J/K
Command Description /Show available commands /modelSwitch model /newStart new conversation /compactSummarize conversation
macOS Users
Use Cmd instead of Ctrl for Cursor shortcuts
Claude Code image paste : Use Ctrl+V (not Cmd+V) — this catches many people
Terminal line breaks : Option+Enter by default in Claude Code
Run /terminal-setup in Claude Code for Shift+Enter support in iTerm2
Windows/Linux Users
Ctrl is the primary modifier everywhere
Some terminal emulators may capture shortcuts before they reach Claude Code
Windows Terminal and WSL both work with Claude Code natively
Check for conflicts with system-level shortcuts (especially in Linux desktop environments)
Open Keyboard Shortcuts: Ctrl+R then Ctrl+S (or Cmd+R then Cmd+S)
Search for the command you want to modify
Click the pencil icon to edit
Press your desired key combination
Save
Example custom binding:
"command" : " cursor.generateGitCommitMessage "
Create shortcuts for frequently used prompts:
Create the .claude/commands/ directory in your project
Add markdown files — each file becomes a /command-name
Use $ARGUMENTS for dynamic input
Example .claude/commands/review.md:
allowed-tools : [ Read , Bash ]
description : Review code for bugs and security issues
Review the following code for bugs, security vulnerabilities, and performance issues.
Focus on real problems, not style preferences. $ARGUMENTS
Usage: /review @src/auth.ts
Cmd/Ctrl+I — Agent chat
Cmd/Ctrl+K — Inline edit
Tab — Accept suggestion
Cmd/Ctrl+Shift+L — Add to chat
Cmd/Ctrl+E — Background Agent
@ — Reference symbols
Cmd/Ctrl+/ — Switch models
Cmd/Ctrl+Enter — Accept all
Escape — Cancel
Cmd/Ctrl+Shift+P — Command palette
Escape — Stop Claude
Escape twice — Edit message
Up arrow — Previous command
Tab — Complete command
# — Update CLAUDE.md
/ — Slash commands
@ — Reference files
Ctrl+V — Paste images
\ + Enter — New line
Ctrl+D — Exit session
Enter — Submit prompt
Escape — Cancel generation
Up/Down — Command history
Tab — Autocomplete
/ — Slash commands
Ctrl+C — Interrupt
Ctrl+L — Clear screen
N (App) — New task
D (App) — View diff
A (App) — Accept changes