Keyhab
⌘K
Cursor

Cursor AI Editor Shortcuts — Complete Guide

Complete Cursor AI editor keyboard shortcuts guide. AI chat, inline editing, code generation, and all VSCode-inherited shortcuts for Mac and Windows.

What Is Cursor?

Cursor is an AI-powered code editor built on top of Visual Studio Code. It inherits all of VSCode's features and shortcuts while adding powerful AI capabilities — inline code generation, natural language editing, codebase-aware chat, and more. Understanding both the AI-specific shortcuts and the inherited VSCode shortcuts is key to getting the most out of Cursor.

This guide covers all Cursor-specific shortcuts plus the most important inherited VSCode shortcuts, for both Mac and Windows/Linux.

---

Cursor AI-Specific Shortcuts

These shortcuts are unique to Cursor and control its AI features.

AI Chat and Composer

ActionMacWindows / Linux
Open AI Chat (side panel)Cmd + LCtrl + L
Open Composer (multi-file AI edit)Cmd + ICtrl + I
Inline Edit (AI edit in place)Cmd + KCtrl + K
Toggle AI Chat panelCmd + LCtrl + L
New chat conversationCmd + Shift + LCtrl + Shift + L
Add selection to chat contextSelect code > Cmd + LSelect code > Ctrl + L
Add file to chat context@filename in chat@filename in chat
Reference documentation@docs in chat@docs in chat
Reference codebase@codebase in chat@codebase in chat

Inline Editing (Cmd/Ctrl + K)

ActionMacWindows / Linux
Open inline edit promptCmd + KCtrl + K
Accept AI suggestionCmd + Y or TabCtrl + Y or Tab
Reject AI suggestionEscEsc
Accept partial suggestionCmd + RightCtrl + Right

Tab Completion (Copilot++)

ActionMacWindows / Linux
Accept full suggestionTabTab
Accept next wordCmd + RightCtrl + Right
Dismiss suggestionEscEsc
Trigger suggestion manuallyType or pauseType or pause

---

Essential Inherited VSCode Shortcuts

Since Cursor is built on VSCode, all VSCode shortcuts work in Cursor. Here are the most important ones.

Command Palette and Quick Open

ActionMacWindows / Linux
Command PaletteCmd + Shift + PCtrl + Shift + P
Quick Open fileCmd + PCtrl + P
Go to SymbolCmd + Shift + OCtrl + Shift + O
Go to LineCtrl + GCtrl + G
Open SettingsCmd + ,Ctrl + ,

Editing

ActionMacWindows / Linux
Cut lineCmd + XCtrl + X
Copy lineCmd + CCtrl + C
Move line up/downOption + Up/DownAlt + Up/Down
Duplicate lineShift + Option + Up/DownShift + Alt + Up/Down
Delete lineCmd + Shift + KCtrl + Shift + K
Toggle line commentCmd + /Ctrl + /
Toggle block commentShift + Option + AShift + Alt + A
Format documentShift + Option + FShift + Alt + F
Rename symbolF2F2
Quick FixCmd + .Ctrl + .

Multi-Cursor

ActionMacWindows / Linux
Add cursor above/belowCmd + Option + Up/DownCtrl + Alt + Up/Down
Add cursor at clickOption + ClickAlt + Click
Select current wordCmd + DCtrl + D
Select all occurrencesCmd + Shift + LCtrl + Shift + L

Search

ActionMacWindows / Linux
Find in fileCmd + FCtrl + F
Replace in fileCmd + Option + FCtrl + H
Find in all filesCmd + Shift + FCtrl + Shift + F
Replace in all filesCmd + Shift + HCtrl + Shift + H

Navigation

ActionMacWindows / Linux
Go to DefinitionF12F12
Peek DefinitionOption + F12Alt + F12
Go BackCtrl + -Alt + Left
Go ForwardCtrl + Shift + -Alt + Right
Toggle SidebarCmd + BCtrl + B
Toggle TerminalCtrl + Ctrl +
Split EditorCmd + \Ctrl + \

---

Cursor AI Workflow Patterns

Knowing the shortcuts is one thing — knowing how to combine them effectively is another. Here are common workflow patterns.

Pattern 1: Quick Question About Code

  1. Select the code you have a question about.
  2. Press Cmd + L to add it to the AI Chat.
  3. Type your question and press Enter.

Pattern 2: Inline Code Edit

  1. Select the code you want to modify (or place your cursor where you want new code).
  2. Press Cmd + K to open the inline edit prompt.
  3. Describe what you want in natural language.
  4. Review the diff and press Tab to accept or Esc to reject.

Pattern 3: Multi-File Refactor with Composer

  1. Press Cmd + I to open the Composer.
  2. Describe the change you want across multiple files.
  3. Use @filename to reference specific files.
  4. Review each file's changes and accept or reject individually.

Pattern 4: Codebase-Aware Chat

  1. Press Cmd + L to open chat.
  2. Type @codebase followed by your question.
  3. Cursor will search your entire codebase for relevant context before answering.

Pattern 5: Documentation-Aware Chat

  1. Press Cmd + L to open chat.
  2. Type @docs and select a documentation source.
  3. Ask your question — Cursor will use the official docs as context.

---

Cursor Settings Worth Knowing

Access settings with Cmd + , and search for these:

SettingDescription
cursor.ai.modelChoose which AI model to use
cursor.ai.enableTabEnable/disable Copilot++ tab completion
cursor.ai.enableInlineEditEnable/disable Cmd+K inline editing
cursor.privacy.modeControl what code is sent to AI

---

Cursor vs. VSCode: Key Differences

FeatureVSCodeCursor
AI ChatExtension required (Copilot)Built-in (Cmd + L)
Inline AI EditLimitedFull support (Cmd + K)
Multi-file AI EditNot availableComposer (Cmd + I)
Codebase Search (AI)Not available@codebase
Tab CompletionCopilot extensionBuilt-in Copilot++
Base ShortcutsAll VSCode shortcutsAll VSCode shortcuts
ExtensionsFull marketplaceFull compatibility
PriceFreeFree tier + Pro plan

---

Top 10 Cursor Shortcuts for Daily Use

  1. Cmd/Ctrl + L — Open AI Chat. Your conversational AI assistant.
  2. Cmd/Ctrl + K — Inline edit. Describe changes in natural language.
  3. Cmd/Ctrl + I — Composer. Multi-file AI editing.
  4. Tab — Accept AI suggestion. The most frequently used AI shortcut.
  5. Cmd/Ctrl + P — Quick Open. Navigate files instantly.
  6. Cmd/Ctrl + Shift + P — Command Palette. Access every command.
  7. Cmd/Ctrl + D — Select next occurrence. Multi-cursor editing.
  8. Cmd/Ctrl + Shift + K — Delete line.
  9. Cmd/Ctrl + / — Toggle comment.
  10. F12 — Go to Definition.

---

Tips for Mastering Cursor

  1. Learn the 3 AI shortcuts first: Cmd + L (chat), Cmd + K (inline edit), Cmd + I (composer). These are what make Cursor unique.
  2. Use @-mentions in chat to give the AI precise context: @filename, @codebase, @docs.
  3. Review AI diffs carefully. Always read what the AI suggests before accepting.
  4. Build muscle memory with Keyhab. Practice both the Cursor-specific and inherited VSCode shortcuts with spaced repetition drills.
  5. Customize keybindings if the defaults conflict with your workflow. Open keybindings with Cmd + K, Cmd + S.

---

Conclusion

Cursor combines the power of VSCode's editing capabilities with cutting-edge AI features. The three core AI shortcuts — Chat (Cmd + L), Inline Edit (Cmd + K), and Composer (Cmd + I) — are the foundation of the Cursor workflow. Layer in the essential VSCode shortcuts for navigation, editing, and multi-cursor, and you have an incredibly efficient development environment. Practice consistently, and these shortcuts will become second nature within weeks.

⌘K

Learn Cursor shortcuts with quick quizzes

Keyhab quizzes you on 1,050 shortcuts for 15 tools, from Basics to Advanced. Five minutes a day on iPhone or iPad — VSCode (Mac) and Vim Basics are free.

Download free on the App Store

Related