This comprehensive reference covers all keyboard shortcuts for both Cursor and Claude Code, helping you work efficiently with AI-powered development tools.
Most Essential Shortcuts
Ctrl+K / Cmd+K - Inline Edit
Ctrl+I / Cmd+I - Agent Chat
Tab - Accept autocomplete
Ctrl+E / Cmd+E - Background Agent
Escape - Cancel operation
Escape - Stop Claude (not Ctrl+C)
Escape twice - Edit previous message
Tab - Command completion
Ctrl+V - Paste images (not Cmd+V)
Up/Down arrows - Navigate history
Shortcut Action Windows/Linux macOS Toggle Sidepanel Open/close AI chat Ctrl+ICmd+IToggle Sidepanel (alt) Open/close AI chat Ctrl+LCmd+LBackground Agent Control panel Ctrl+ECmd+EMode Menu Change AI modes Ctrl+.Cmd+.Model Switching Loop between models Ctrl+/Cmd+/Cursor Settings Open Cursor settings Ctrl+Shift+JCmd+Shift+JGeneral Settings VS Code settings Ctrl+,Cmd+,Command Palette All commands Ctrl+Shift+PCmd+Shift+P
Shortcut Action Windows/Linux macOS Submit Send message EnterEnterForce Submit Override queue Alt+EnterAlt+EnterCancel Generation Stop AI response Ctrl+Shift+BackSpaceCmd+Shift+BackSpaceAdd Code Context Selected code to chat Ctrl+Shift+LCmd+Shift+LPaste as Context Add clipboard Ctrl+VCmd+VPaste to Input Add to message Ctrl+Shift+VCmd+Shift+VAccept All Changes Apply suggestions Ctrl+EnterCmd+EnterReject All Changes Discard suggestions Ctrl+BackSpaceCmd+BackSpaceNext Message Navigate forward TabTabPrevious Message Navigate back Shift+TabShift+TabModel Toggle Switch models Ctrl+Alt+/Cmd+Alt+/New Chat Start fresh Ctrl+N or Ctrl+RCmd+N or Cmd+RNew Chat Tab New tab Ctrl+TCmd+TPrevious Chat History back Ctrl+[Cmd+[Next Chat History forward Ctrl+]Cmd+]Close Chat End conversation Ctrl+WCmd+WUnfocus Field Exit input EscEsc
Shortcut Action Windows/Linux macOS Open Inline Edit Start editing Ctrl+KCmd+KToggle Focus Switch input focus Ctrl+Shift+KCmd+Shift+KSubmit Edit Apply changes EnterEnterCancel Edit Discard changes Ctrl+Shift+BackSpaceCmd+Shift+BackSpaceQuick Question Ask about selection Alt+EnterAlt+Enter
Shortcut Action Windows/Linux macOS @ Symbols Reference symbols @@Files Reference files ##Commands Slash commands //Add to Chat Selection to chat Ctrl+Shift+LCmd+Shift+LAdd to Edit Selection to inline Ctrl+Shift+KCmd+Shift+KNew Chat with Selection Start fresh chat Ctrl+LCmd+LToggle Reading Strategy Change file reading Ctrl+MCmd+MAccept Next Word Partial accept Ctrl+Arrow-RightCmd+Arrow-RightSearch Codebase Semantic search Ctrl+EnterCmd+Enter
Shortcut Action Windows/Linux macOS Accept Suggestion Complete code TabTabAccept Next Word Partial completion Ctrl+Arrow-RightCmd+Arrow-RightReject Suggestion Dismiss EscEsc
Shortcut Action Windows/Linux macOS Terminal Prompt AI command generation Ctrl+KCmd+KRun Command Execute generated Ctrl+EnterCmd+EnterAccept Command Confirm command EscEsc
Shortcut Action Windows/Linux macOS Show All Shortcuts View complete list Ctrl+R then Ctrl+SCmd+R then Cmd+SAI Commit Message Generate commit msg Configurable Configurable Copy Code Reference With context Ctrl+CCmd+CPaste Code Reference As context Ctrl+VCmd+VPaste Code as Text Without reference Ctrl+Shift+VCmd+Shift+V
Shortcut Description Context Ctrl+CCancel current input/generation Standard interrupt Ctrl+DExit Claude Code session EOF signal Ctrl+LClear terminal screen Keeps conversation history Up/Down arrowsNavigate command history Recall previous inputs Esc + EscEdit previous message Double-escape to modify TabCommand completion Autocomplete commands
Method Shortcut Context Quick escape \ + EnterWorks in all terminals macOS default Option+EnterDefault on macOS Terminal setup Shift+EnterAfter /terminal-setup Paste mode Direct paste For code blocks, logs
Shortcut Description Notes # at startMemory shortcut - add to CLAUDE.md Prompts for file selection / at startSlash command menu See slash commands section @ in messageReference files Include file contents
Enable with /vim command or configure permanently via /config.
Command Action From mode EscEnter NORMAL mode INSERT iInsert before cursor NORMAL IInsert at beginning of line NORMAL aInsert after cursor NORMAL AInsert at end of line NORMAL oOpen line below NORMAL OOpen line above NORMAL
Command Action h/j/k/lMove left/down/up/right wNext word eEnd of word bPrevious word 0Beginning of line $End of line ^First non-blank character ggBeginning of input GEnd of input
Command Action xDelete character ddDelete line DDelete to end of line dw/de/dbDelete word/to end/back ccChange line CChange to end of line cw/ce/cbChange word/to end/back .Repeat last change
Key Function Important Note EscapeStop Claude operation Not Ctrl+C (exits entirely) Escape twiceShow message list Jump to any previous message Control+VPaste images Not Command+V on Mac #Quick CLAUDE.md update Dynamic documentation Up arrowPrevious commands Works across sessions
macOS Users
Use Cmd instead of Ctrl for most shortcuts
Claude Code image paste: Ctrl+V (not Cmd+V)
Terminal line breaks: Option+Enter by default
VS Code import: Same keybindings work
Windows/Linux Users
Ctrl is the primary modifier key
Some terminal emulators may capture shortcuts
Configure terminal for proper Shift+Enter support
Check for conflicts with system shortcuts
For line breaks in Claude Code
Run /terminal-setup for automatic configuration
Or manually set up Shift+Enter in your terminal
For better Claude Code experience
Disable conflicting terminal shortcuts
Enable proper escape key handling
Configure history navigation
For IDE integration
Install appropriate extensions
Configure launch shortcuts
Set up proper terminal profiles
Open Keyboard Shortcuts: Ctrl+R then Ctrl+S
Search for the command you want to modify
Click the pencil icon to edit
Press your desired key combination
Save changes
Example custom binding for AI commit message:
"command" : " cursor.generateGitCommitMessage "
Create shortcuts for frequently used commands:
Create .claude/commands/ directory
Add markdown files for custom commands
Use / to access your commands
Example: .claude/commands/review.md:
Please review this code for bugs and security issues.
Focus on potential vulnerabilities and logic errors.
Quick Fix : Select code → Ctrl+K → describe fix
Add Context : Ctrl+Shift+L → ask question
Multi-file : @ multiple files → Ctrl+I
Fast Accept : Tab → Ctrl+Arrow for partial
Quick Edit : Escape twice → modify prompt
History Search : Up arrow → find command
Stop & Redirect : Escape → new instruction
Multi-line : \ + Enter or configure Shift+Enter
For Cursor:
Bind frequently used AI features to custom shortcuts
Use @ symbols extensively for context
Master the Tab key for rapid completion
Keep chat tabs organized with Ctrl+T
For Claude Code:
Use # for quick documentation updates
Master escape key for flow control
Leverage command history with up arrow
Create custom slash commands for repetitive tasks
Cursor Issues
Shortcuts not working : Check for extension conflicts
Wrong model selected : Use Ctrl+/ to cycle
Chat not responding : Try Ctrl+Shift+BackSpace
Context missing : Verify with @ symbol references
Claude Code Issues
Escape not working : Check terminal settings (especially JetBrains)
Can’t paste images : Use Ctrl+V, not Cmd+V on Mac
Line breaks difficult : Run /terminal-setup
History not working : Ensure proper shell configuration
Print this section for desk reference:
Ctrl/Cmd+K - Inline Edit
Ctrl/Cmd+I - Agent Chat
Tab - Accept suggestion
Ctrl/Cmd+Shift+L - Add to chat
Ctrl/Cmd+E - Background Agent
@ - Reference symbols
Ctrl/Cmd+/ - Switch models
Ctrl/Cmd+Enter - Accept all
Escape - Cancel
Ctrl/Cmd+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