Skip to content

Keyboard Shortcuts Mastery

Master Cursor’s keyboard shortcuts to code at the speed of thought. These shortcuts are your gateway to 10x productivity gains - reducing thousands of daily micro-interactions to instant muscle memory actions.

Every time you reach for your mouse, you lose 2-3 seconds. That’s:

  • 480 seconds (8 minutes) lost per day with 160 mouse reaches
  • 40 minutes lost per week
  • 34 hours lost per year

Master these shortcuts and reclaim that time for actual coding.

Ctrl+K

Inline Edit - Edit selected code with natural language

Ctrl+I

Agent Chat - Open AI chat for complex multi-file tasks

Ctrl+L

Toggle Sidepanel - Show/hide the AI chat panel

Ctrl+E

Background Agent - Access background agent control panel

ShortcutActionWhen to Use
Ctrl+KInline EditQuick, focused edits to selected code
Ctrl+IAgent ChatComplex tasks spanning multiple files
Ctrl+LToggle SidepanelSwitch between code and chat focus
Ctrl+EBackground AgentLong-running or parallel tasks
Ctrl+.Mode MenuSwitch between Agent/Ask modes
Ctrl+/Model ToggleCycle through AI models
TabAccept SuggestionAccept AI autocomplete
Ctrl+→Accept Next WordPartial acceptance of suggestions
ShortcutActionPower User Tip
EnterSubmit MessageHold Alt for priority queue
Ctrl+Shift+BackspaceCancel GenerationStop runaway AI responses
Ctrl+Shift+LAdd Selected to ChatInclude code context instantly
Ctrl+EnterAccept All ChangesBatch accept AI suggestions
Ctrl+BackspaceReject All ChangesBatch reject AI suggestions
Ctrl+NNew ChatStart fresh conversation
Ctrl+TNew Chat TabParallel conversations
Ctrl+[ / Ctrl+]Navigate ChatsMove between chat history
ShortcutActionExample Use
Ctrl+K (in terminal)AI Command”list my five most recent git branches”
Ctrl+Shift+KToggle Terminal FocusQuick terminal commands

Replace all Ctrl with Cmd:

  • Cmd+K - Inline Edit
  • Cmd+I - Agent Chat
  • Cmd+L - Toggle Panel
  • Cmd+/ - Model Toggle
1. See error → Select code (double-click)
2. Ctrl+K → Type "fix error"
3. Enter → Tab (accept fix)
Total time: 3 seconds
1. Select relevant code
2. Ctrl+Shift+L (add to chat)
3. Repeat for multiple contexts
4. Type question → Enter
Perfect for: Complex debugging
1. Select function/class
2. Ctrl+K
3. "refactor to use [pattern]"
4. Review diff → Enter
Time saved: 5-10 minutes per refactor
  1. Press Ctrl+Shift+P (Command Palette)
  2. Type “Keyboard Shortcuts”
  3. Search for Cursor-specific commands
  4. Click the pencil icon to customize

Consider adding these custom shortcuts for frequent operations:

{
"key": "ctrl+alt+t",
"command": "cursor.generateTests",
"when": "editorTextFocus"
},
{
"key": "ctrl+alt+d",
"command": "cursor.generateDocs",
"when": "editorTextFocus"
},
{
"key": "ctrl+alt+r",
"command": "cursor.reviewCode",
"when": "editorTextFocus"
}
  • Ctrl+K - Inline edits (use 50+ times)
  • Tab - Accept completions
  • Ctrl+I - Open chat
  • Ctrl+L - Toggle panel
  • Ctrl+Shift+L - Add context to chat
  • Ctrl+Enter - Accept all changes
  • Ctrl+N - New chat
  • Ctrl+→ - Partial acceptance
  • Ctrl+E - Background agent
  • Ctrl+T - Chat tabs
  • Ctrl+. - Mode switching
  • Terminal AI commands
  • Custom shortcut creation
  • Multi-shortcut combos
  • Context-specific workflows
  • Team shortcut sharing
  1. Over-relying on mouse - Force yourself to use shortcuts even if slower initially
  2. Not using Tab completion - It’s faster than you think
  3. Forgetting context shortcuts - Ctrl+Shift+L is a game-changer
  4. Ignoring partial acceptance - Ctrl+→ gives you fine control
  5. Not customizing - Your workflow is unique, make shortcuts match

Track your shortcut usage for one week:

MetricBeginnerIntermediateExpert
Shortcuts/hour5-1020-3050+
Mouse usage80%40%under 10%
Task completionBaseline1.5x faster3x faster
Flow interruptionsFrequentOccasionalRare

Complete an entire feature without touching your mouse:

  1. Create new file (Ctrl+N)
  2. Write function with Tab completion
  3. Add error handling (Ctrl+K → “add try-catch”)
  4. Generate tests (Ctrl+I → “write tests”)
  5. Commit (Ctrl+K in terminal → “commit with message”)
  1. Find a 50-line function
  2. Use Ctrl+K to break it into smaller functions
  3. Time yourself - aim for under 2 minutes
  4. Repeat daily until natural
  1. Open 3 related files
  2. Build context using only shortcuts
  3. Ask complex architectural question
  4. Implement suggested changes
  5. All without mouse

“Learning shortcuts cut my coding time by 40%. I used to spend half my time navigating - now it’s instant.”

Key shortcuts that helped most:

  • Ctrl+K for quick fixes
  • Tab for completions
  • Ctrl+I for learning

Now that you’ve mastered keyboard shortcuts, enhance your productivity further with: