Cheat Sheet

Reference intermediate

Cursor Keyboard Shortcuts and Commands

Core AI Shortcuts

Action Mac Windows/Linux
Open AI Chat Cmd+L Ctrl+L
Inline Edit (selection) Cmd+K Ctrl+K
Inline Edit (no selection) Cmd+K Ctrl+K
Accept inline suggestion Tab Tab
Reject inline suggestion Esc Esc
Toggle Agent Cmd+I Ctrl+I
Add file to chat context @file @file
Add folder to context @folder @folder
Reference docs @docs @docs
Reference codebase Agent's semantic search Agent's semantic search

Chat Panel Commands

Command Purpose
@file Reference a specific file
@folder Reference an entire folder
Agent's semantic search Search across the whole project
@docs Reference indexed documentation
`` Search the web for current info
@git Reference git history/diffs
`` Reference symbol definitions
/edit Switch to edit mode in chat
/explain Ask for code explanation

Navigation Shortcuts

Action Mac Windows/Linux
Command Palette Cmd+Shift+P Ctrl+Shift+P
Quick Open file Cmd+P Ctrl+P
Go to Symbol Cmd+Shift+O Ctrl+Shift+O
Go to Definition F12 F12
Go to Line Ctrl+G Ctrl+G
Toggle Sidebar Cmd+B Ctrl+B
Toggle Terminal Ctrl+` Ctrl+`
Split Editor Cmd+\ Ctrl+\

Editing Shortcuts

Action Mac Windows/Linux
Multi-cursor Cmd+D (next match) Ctrl+D
Select all occurrences Cmd+Shift+L Ctrl+Shift+L
Move line up/down Opt+Up/Down Alt+Up/Down
Duplicate line Shift+Opt+Down Shift+Alt+Down
Delete line Cmd+Shift+K Ctrl+Shift+K
Toggle comment Cmd+/ Ctrl+/
Format document Shift+Opt+F Shift+Alt+F
Rename symbol F2 F2

Agent Mode (Agent)

Action Shortcut
Open Agent mode Cmd+I / Ctrl+I
Send message Enter
New line in input Shift+Enter
Accept all changes Click "Accept All"
Reject all changes Click "Reject All"
Review individual change Click file in diff view

Context Management

Method When to Use Token Cost
@file specific file Need exact file content Low
@folder Need awareness of structure Medium
Agent's semantic search Need to find relevant code High
Paste code in chat Need focus on specific snippet Low
@docs Need library documentation Medium
`` Need current information Medium
@git Need change history Low-Medium

Settings Quick Reference

Access via: Cmd+, (Mac) or Ctrl+, (Windows/Linux), then search:

Setting Purpose Recommended
cursor.ai.model Select AI model Latest available
cursor.ai.enableAutoComplete Toggle autocomplete On
cursor.ai.chatModel Chat-specific model Match your plan
cursor.cpp.enablePartialAccepts Partial Tab accepts On

File Ignore Patterns

Create .cursorignore in project root to exclude files from AI context:

# Dependencies
node_modules/
venv/

# Build output
dist/
.next/
build/

# Large files
*.min.js
*.map
package-lock.json

# Sensitive
.env*
secrets/

Quick Workflow Reference

Generate new code:

  1. Cmd+L to open chat
  2. Describe what you need with @file context
  3. Review in diff view
  4. Accept or refine

Edit existing code:

  1. Select the code
  2. Cmd+K for inline edit
  3. Describe the change
  4. Tab to accept, Esc to reject

Multi-file feature:

  1. Cmd+I to open Agent mode
  2. Describe the full feature
  3. Reference relevant files with @
  4. Review each file's changes
  5. Accept All or cherry-pick