Cursor is a VS Code fork with deep AI integration — inline editing, agent mode, and project-wide understanding.
Rules live in .cursor/rules/*.mdc with frontmatter. The single-file .cursorrules at project
root still works as a legacy fallback but is no longer the documented default.
Download from cursor.com and install the app.
On first launch, accept the prompt to import your VS Code settings, keybindings, and extensions.
Open a file, press Cmd+I to open Agent, and type: "Add a JSDoc comment to every exported function in this file."
Cursor's multi-file agent (previously called "Composer" in 2024 docs, now documented as Agent) reads your codebase, plans changes across files, and applies them with your approval.
Cmd+I — Open Agent for multi-file agent mode (previously "Composer")Cmd+K — Inline edit at cursor positionCmd+L — Chat about selected codeShortcuts are configurable. Check Settings → Keyboard Shortcuts for your current mapping — Cursor has historically renamed features (e.g. "Composer" → "Agent") and reshuffled bindings across major versions.
.cursor/rules/*.mdcProject-level instructions, similar to CLAUDE.md. The current recommended path is a .cursor/rules/ directory with per-rule .mdc files (each with frontmatter). The single-file .cursorrules at project root still works as a legacy fallback but is no longer the documented default.
---
description: TypeScript + Next.js patterns for this repo
globs: ['**/*.ts', '**/*.tsx']
alwaysApply: false
---
- Use Next.js App Router patterns
- Prefer Server Components
- Use Drizzle ORM for database queries
- Always validate input with ZodEach rule declares:
description — what the rule is for (used when Cursor decides which rules apply)globs — path patterns that scope the rulealwaysApply — whether the rule is always in contextIn the Cursor UI, the rule-type dropdown surfaces four modes that map to these fields:
| UI option | Effect |
|---|---|
| Always Apply | Every chat session (alwaysApply: true) |
| Apply Intelligently | Cursor decides based on description |
| Apply to Specific Files | Only when the open file matches globs |
| Apply Manually | Only when @-mentioned in chat |
For simpler projects, a plain AGENTS.md at the project root is a documented alternative.
@file — Reference a specific file in chat@folder — Include a directory@codebase — Search the entire project@web — Search the web for documentation@docs — Reference indexed documentation| Feature | Cursor | Claude Code |
|---|---|---|
| Interface | GUI (VS Code) | Terminal CLI |
| Multi-file editing | Composer agent | Built-in |
| Model selection | Multiple (Claude, GPT, etc.) | Claude only |
| MCP support | Via extensions | Native |
| Background agents | No | Yes |
| Git integration | Via VS Code | Native |
| Price | Hobby (Free), Pro $20/mo, Pro+ $60/mo, Ultra $200/mo, Teams $40/seat/mo, Enterprise (custom) | API usage-based |
@codebase in Agent for project-wide changes.cursor/rules/*.mdc with globs to scope them per directorySearch for a command to run...