AI Reference

Learn. Practice. Build.

Home › Code Snippets › AI › Reference › Cursor

AI Reference

Cursor

AI-native IDE built as a fork of VS Code. Composer, Rules, and codebase-aware chat.

Last updated: October 2026

Definition: Cursor is an AI-native code editor built as a fork of VS Code. AI is built into the core — Composer for multi-file agentic edits, codebase-aware chat, and inline generation. It's the most-used AI IDE in 2026.

📊 By the Numbers (2026)

Metric Value
Daily active users1M+
Paying customers1M+
Fortune 500 adoption64%
ARR (May 2026 est.)$4B
1

Install

# macOS
brew install --cask cursor

# Windows
winget install --id=Anysphere.Cursor -e

# Or download from cursor.com
2

Cursor's Four Modes

Mode Use when
AgentMulti-file, autonomous tasks
AskCodebase questions, no changes
ManualTargeted, precise edits
CustomYour own workflows
3

Choose Your Model

  • Claude Sonnet 4.6 — best balance of quality and cost
  • Claude Opus 4.6 — best for complex reasoning
  • GPT-5.4 — strong general purpose
  • Gemini 3 Pro — long context tasks
  • Grok Code — fast, code-specialized

Pro tip: Start with Sonnet — it balances quality and cost. Reserve Opus for the hardest tasks.

4

Set Up Rules

Create .cursor/rules/ and add a project rules file:

# Project: My App

## Stack
- React 19 + Vite + Tailwind CSS
- TypeScript strict mode

## Conventions
- Functional components only
- Named exports
- Tailwind utility classes, no inline styles

## Testing
- Vitest for unit tests
- Playwright for E2E

Keep Rules under 500 lines. Concrete examples work better than vague guidance.

5

Build with Composer

Open Composer with Cmd+I or Ctrl+I. Try:

Build a simple LLM cost calculator:
- Input: token count, model type
- Output: estimated cost
- React + Tailwind
- Add form validation and clean UI

Composer proposes changes across multiple files with a visual diff.

6

Keyboard Shortcuts

Cmd/Ctrl + I     # Open Composer
Cmd/Ctrl + K     # Inline edit
Cmd/Ctrl + L     # Open chat
Tab              # Accept completion
Esc              # Reject suggestion

⚠️ Common Mistakes

❓ Frequently Asked Questions

What is Cursor?

Cursor is an AI-native code editor built as a fork of VS Code. AI is built into the core, including Composer for multi-file agentic edits, codebase-aware chat, and inline generation.

Is Cursor free?

Cursor has a free Hobby tier with limited agent requests. Paid plans start at $20/month for Pro, which includes unlimited tab completions and extended agent limits.

What is Cursor Composer?

Composer is Cursor's agentic mode that makes multi-file edits across your project. Open it with Cmd+I or Ctrl+I, describe what you want, and it proposes changes with a visual diff.

What are Cursor Rules?

Rules are persistent instructions in .cursor/rules/ that guide Cursor's behavior across conversations. They define coding conventions, frameworks, and patterns.

What models does Cursor support?

Cursor supports Claude Sonnet and Opus, GPT-5 series, Gemini 3 Pro, and Grok Code. You can switch models per conversation or per task.

🎯 What's Next?

← All AI Reference