⌨️ Keybinds
| Cheat Code | Use | Example |
|---|---|---|
Cmd/Ctrl+K | Inline edit / generate | Select code → Cmd+K → 'add error handling' |
Cmd/Ctrl+L | Open chat with selection | Ask about selected code |
Cmd/Ctrl+I | Open Composer / Agent | Multi-file changes |
Tab | Accept Cursor Tab suggestion | Predictive multi-line edit |
Cmd/Ctrl+Shift+L | Add selection to chat | Stack multiple selections |
📎 @-mentions (context)
| Cheat Code | Use | Example |
|---|---|---|
@Files | Attach specific files | @Files src/api/user.ts |
@Folders | Attach a folder | @Folders src/components |
@Code | Attach a symbol | @Code useAuth |
@Docs | Attach indexed docs | @Docs Stripe API |
@Web | Live web search | @Web latest Tailwind v4 syntax |
@Git | Diff / commit context | @Git last 5 commits |
@Terminal | Recent terminal output | @Terminal — fix this error |
📜 .cursorrules recipes
A .cursorrules file at repo root steers every request.
| Cheat Code | Use | Example |
|---|---|---|
stack: | Lock the stack | React 19, TS strict, Tailwind v4 |
style: | Enforce style | Functional components, no default exports |
test: | Test policy | Vitest + RTL, colocate *.test.tsx |
avoid: | Ban patterns | Never use any, never import lodash |
output: | Output shape | Return only changed files, with paths |
🤖 Agent / Composer
| Cheat Code | Use | Example |
|---|---|---|
/plan | Ask for a plan first | /plan add auth with Supabase |
/apply | Apply diff after plan | /apply the plan you just wrote |
/undo | Revert last agent change | In Composer history |
/scope | Restrict scope | /scope only src/routes/auth/* |
Frequently asked questions
When should I use Composer vs Cmd+K?
Cmd+K for one-file, one-idea edits. Composer/Agent for changes that touch multiple files or need a plan-then-apply loop.
Does @Docs need Pro?
Adding custom docs and indexing large repos is a Pro feature. Built-in docs work on the free tier.