Skip to content

Keyboard Shortcuts Mastery

You are mid-flow, implementing a feature. You need to ask the AI about a function in another file. You reach for the mouse, click the chat panel, click back to the editor, select some code, right-click, find “Add to Chat” in the menu, switch back to chat, type your question. Thirty seconds gone, flow state broken. The same task with keyboard shortcuts takes three seconds: Cmd+Shift+L to add the selection, Cmd+L to focus chat, type, enter.

The difference between a developer who uses shortcuts and one who does not is not just speed — it is the preservation of focus. Every mouse interaction is a micro-interruption that pulls you out of the problem you are solving.

  • The 12 shortcuts that cover 90% of Cursor-specific workflows
  • Workflow-based shortcut chains that replace multi-step mouse operations
  • Platform-specific variations for macOS and Windows/Linux
  • A two-week practice plan for building muscle memory

These are the shortcuts that matter most, organized by frequency of use rather than alphabetically. Learn these first and you will cover the vast majority of your Cursor interactions.

Shortcut (Mac)Shortcut (Win/Linux)What It Does
Cmd+ICtrl+IOpen/focus the Agent chat panel
Cmd+LCtrl+LToggle the side panel (or add selection to new chat)
Cmd+KCtrl+KInline edit — edit selected code with natural language
TabTabAccept AI suggestion (autocomplete or next suggestion)
Cmd+.Ctrl+.Open mode menu (switch between Agent/Ask/Plan/Debug)
Shortcut (Mac)Shortcut (Win/Linux)What It Does
Cmd+Shift+LCtrl+Shift+LAdd selected code as context to the current chat
Cmd+EnterCtrl+EnterAccept all AI-suggested changes
Cmd+BackspaceCtrl+BackspaceReject all AI-suggested changes
Cmd+NCtrl+NStart a new chat (fresh context)
Cmd+/Ctrl+/Cycle between AI models
Cmd+RightCtrl+RightAccept the next word of a suggestion (partial accept)
Shift+TabShift+TabRotate between Agent modes in the chat input

Individual shortcuts are useful. Chaining them together is where the real speed comes from.

When you see an error in your code:

  1. Select the problematic code (double-click a word, or Cmd+D to expand selection)
  2. Press Cmd+K to open inline edit
  3. Type “fix this error” or a more specific instruction
  4. Press Enter to submit
  5. Press Tab to accept the fix

Total time: 3-5 seconds. No mouse, no chat panel, no context switching.

When you need to ask the AI about code spread across multiple files:

  1. Open the first relevant file and select the key code
  2. Press Cmd+Shift+L to add it as context
  3. Navigate to the second file, select relevant code
  4. Press Cmd+Shift+L again
  5. Press Cmd+L to focus the chat
  6. Type your question and press Enter

For features where you need to understand existing code first:

  1. Press Cmd+. and select Ask mode
  2. Type your exploration question (“How does the payment flow work?”)
  3. Read the answer
  4. Press Cmd+. and switch to Agent mode
  5. Type your implementation instruction with references from the exploration

When you need to run a command you do not remember:

  1. Click into the terminal (or Ctrl+backtick)
  2. Press Cmd+K in the terminal
  3. Type what you want in plain English (“list my 5 most recent git branches sorted by date”)
  4. Press Cmd+Enter to run the generated command

One of Cursor’s most underrated features: pasting code or logs from your clipboard automatically offers to add them as context.

  • Copy code from a browser or another file
  • Press Cmd+V in the chat input — Cursor offers to add it as reference context
  • Press Cmd+Shift+V to paste it directly as text in the input

This is especially useful for pasting error logs, stack traces, or code from documentation.

When Tab completion suggests a long block of code but only the first part is correct:

  • Cmd+Right accepts the next word only
  • Keep pressing Cmd+Right to accept word by word
  • Press Escape when you have accepted enough

This gives you fine-grained control over AI suggestions without accepting or rejecting the entire block.

Press Cmd+Shift+P (command palette), type “Keyboard Shortcuts”, and you can rebind any Cursor shortcut.

All Cursor keybindings are listed alongside standard VS Code keybindings. Search for “cursor” to see Cursor-specific commands.

Focus exclusively on these five shortcuts. Use them for every interaction, even if it feels slower than the mouse at first:

  • Cmd+K for every inline edit
  • Tab for every suggestion acceptance
  • Cmd+I to open chat (never click the panel)
  • Cmd+L to add selections
  • Cmd+N for new chats

Add these to your workflow:

  • Cmd+. for mode switching
  • Cmd+Shift+L for context building
  • Cmd+Enter / Cmd+Backspace for batch accept/reject
  • Cmd+K in terminal for command generation
  • Cmd+Right for partial acceptance

Shortcuts conflict with other extensions. Check for conflicts in Keyboard Shortcuts settings. Search for the key combination to see all commands bound to it.

Cmd+K does not open inline edit. Verify you are in the editor, not the terminal. Cmd+K behavior changes based on focus: in the editor it opens inline edit, in the terminal it opens the AI command prompt.

Tab does not accept suggestions. Check that Cursor Tab is enabled in settings. Also verify that another extension (like Copilot) is not competing for the Tab key.

  • Prompt Templates — Now that you can navigate fast, optimize what you say to the AI
  • Context Patterns — Master the @ mention system for precise context
  • Time Savers — More daily habits that compound into significant time savings