- Published on
Cursor AI 2025 Complete Guide: From Composer 2.0 to .cursorrules — The New Standard in AI Coding
- Authors

- Name
- Youngju Kim
- @fjvbn20031
- Introduction
- 1. Cursor 2.0 — What Changed
- 2. Cursor vs VS Code + Copilot vs Windsurf — Comparison
- 3. Pricing Deep Dive
- 4. Mastering Core Features
- 5. Mastering .cursorrules
- 6. Context Management Strategy
- 7. Composer Agent Real-World Workflows
- 8. Using the Built-in Browser
- 9. Advanced Tips and Customization
- 10. Real-World Productivity Data and Benchmarks
- 11. When NOT to Use Cursor
- 12. Quiz
- References and Links
Introduction
In 2025, the hottest name in AI coding tools is undoubtedly Cursor. This AI-native IDE, which started as a VS Code fork, evolved into an entirely new dimension with its 2.0 update in late 2024. From the self-trained Composer model to credit-based pricing and multi-file agent workflows, Cursor is no longer just an alternative to "VS Code + Copilot" — it has established itself as the new standard in AI coding.
This guide covers everything developers need to know, from Cursor 2.0's core changes to practical workflows, .cursorrules strategies, and comparisons with other AI IDEs. Whether you are already using Cursor or still on the fence, this guide will serve as a definitive compass for your AI coding journey.
1. Cursor 2.0 — What Changed
1.1 The Arrival of Composer Model
The biggest change in Cursor 2.0 is Composer, a self-trained coding model. Anysphere (the company behind Cursor) developed a frontier model specialized for coding, achieving 4x faster speed and more accurate code generation compared to previous GPT-4 or Claude-based responses.
Key characteristics of Composer:
- Coding-specialized training: Not a general-purpose LLM, but a model optimized for software engineering
- 4x speed improvement: Response generation is 4 times faster than previous models
- Multi-file awareness: Enhanced ability to understand entire projects and modify multiple files simultaneously
- Built-in agent mode: Goes beyond code suggestions to autonomously execute terminal commands, create/delete files, and install packages
[Composer Model Architecture Overview]
User Prompt
|
v
Context Collection (@file, @folder, @codebase)
|
v
Composer Frontier Model (coding-specialized training)
|
v
Multi-file Edit Plan Generation
|
v
Display Changes in Diff View + User Review
|
v
Accept/Reject -> Code Applied
1.2 Multi-file Diff View
While multi-file editing was possible in earlier versions of Cursor, the Diff View has been dramatically improved in 2.0. You can review all file changes made by AI in a single view, and selectively Accept or Reject at either file or line level.
Improvements:
| Feature | Cursor 1.x | Cursor 2.0 |
|---|---|---|
| File limit | Max 5-10 | Virtually unlimited |
| Diff display | Inline only | Side-by-side + inline toggle |
| Partial accept | File-level | Line-level granularity |
| Conflict detection | Basic | Auto-detect Git conflicts with resolution suggestions |
| Rollback | Manual | One-click rollback |
1.3 Built-in Browser
Cursor 2.0 embeds a Chromium-based browser inside the editor. When doing frontend development, you can verify the UI directly in a panel next to the editor without opening a separate browser window.
Key use cases:
- Real-time preview of React/Vue/Svelte components
- Instant CSS change verification
- Providing visual context to AI with "look at this UI and fix it"
- Network tab access for API response inspection
- Console log checking and debugging
1.4 BugBot and Background Agents
In 2025, Cursor introduced BugBot, a PR review agent, and Background Agent. BugBot automatically performs code review when a GitHub PR is opened, and Background Agent continues working on remote servers even after the user closes Cursor.
[Background Agent Workflow]
1. User: "Fix this issue" (provides GitHub Issue link)
2. Cursor: Clones codebase in cloud sandbox
3. Background Agent: Analyzes code -> Makes fixes -> Runs tests
4. Result: Auto-creates PR (awaiting user review)
5. User: Reviews PR and merges
2. Cursor vs VS Code + Copilot vs Windsurf — Comparison
Choosing an AI coding IDE has become one of the most important decisions for developers in 2025. Let us deeply compare the three major options.
2.1 Feature Comparison Table
| Feature | Cursor | VS Code + Copilot | Windsurf |
|---|---|---|---|
| Base | VS Code Fork | VS Code + Extension | VS Code Fork |
| AI Model | Composer (custom) + GPT-4, Claude, Gemini | GPT-4o, Claude (selectable) | Cascade (custom + GPT-4) |
| Agent Mode | Composer Agent (powerful) | Copilot Workspace (preview) | Cascade Flow |
| Multi-file Editing | Native (excellent) | Limited | Native (good) |
| Tab Completion | Cursor Tab (very fast) | Copilot suggestions | Tab supported |
| Inline Editing | Cmd+K (powerful) | Copilot Inline Chat | Cmd+K |
| Context Control | @file, @folder, @web, @docs | @workspace (limited) | @file, @code |
| Project Rules | .cursorrules | .github/copilot-instructions.md | .windsurfrules |
| Built-in Browser | Yes | No | No |
| Git Integration | Built-in + AI commit messages | Built-in | Built-in + AI |
| Extension Compatibility | Most VS Code extensions | Native 100% | Most VS Code extensions |
| Privacy Mode | Yes (no code stored) | No | Limited |
| Price (Pro) | $20/mo | $10/mo | $15/mo |
2.2 Selection Guide
Choose Cursor when:
- Your project involves heavy multi-file refactoring
- You need AI agents to code autonomously
- You want fine-grained control over AI behavior with .cursorrules
- The built-in browser is valuable for frontend development
Choose VS Code + Copilot when:
- You want to maintain your existing VS Code workflow
- Extension ecosystem is critical
- Price is a primary consideration
- You need deep integration with the GitHub ecosystem
Choose Windsurf when:
- Cascade's flow-based approach fits your style
- You are looking for a cheaper alternative
- You prefer a lightweight and fast IDE
3. Pricing Deep Dive
3.1 2025 Pricing Structure
In early 2025, Cursor transitioned from the "unlimited slow requests + N fast requests" model to a credit-based system. This reflects a broader trend across the AI industry.
| Plan | Monthly Price | Credits | Model Access | Key Features |
|---|---|---|---|---|
| Hobby | Free | 2,000 | Composer basic | Tab completion, basic chat |
| Pro | $20 | 500 premium credits | Composer + GPT-4, Claude, Gemini | Agent mode, Diff View |
| Pro+ | $60 | Unlimited slow + 1,500 fast | All models + priority access | Unlimited completions, fast responses |
| Ultra | $200 | Unlimited fast | All models + highest priority | Background Agent, BugBot |
| Business | $40/seat | Team configurable | Admin console, SSO | Org management, audit logs |
3.2 Understanding the Credit System
Credits are consumed at different rates depending on the model and request type:
[Credit Consumption Examples]
Composer basic request: 1 credit
Composer agent request: 5 credits
GPT-4o chat: 2 credits
Claude 3.5 Sonnet chat: 2 credits
Tab completion: 0.1 credit
Inline edit (Cmd+K): 1 credit
3.3 Effective Cost Comparison
Comparing monthly effective costs with other AI coding tools:
| Tool | Monthly Cost | Included | Additional Cost |
|---|---|---|---|
| Cursor Pro | $20 | 500 premium credits | $0.04/credit overage |
| GitHub Copilot Individual | $10 | Unlimited completions | Copilot Chat included |
| GitHub Copilot Business | $19/seat | Unlimited + admin | Copilot Workspace extra |
| Windsurf Pro | $15 | Credit-based | Varies by model |
| Claude Code (API) | Usage-based | Pay per token | Can exceed $50 for heavy use |
3.4 Pro vs Pro+ — Which One Should You Choose?
- General developers: Pro ($20) is sufficient. 30-50 AI requests per day comfortably fits within a month
- Heavy users: Pro+ ($60) offers great value. Unlimited slow requests mean infinite usage if you can wait
- Professionals/Leads: Ultra ($200) is suitable for team leads who need Background Agent and BugBot
4. Mastering Core Features
4.1 Tab Completion
Cursor's Tab Completion is not just ordinary code completion. It understands the context of the code you are currently writing, predicts what comes next, and lets you accept it with a single Tab key press.
Difference from traditional autocomplete:
# Traditional autocomplete: suggests variable/function names
user.ge # -> getName, getEmail, getAge etc.
# Cursor Tab: predicts entire logic
def get_user_profile(user_id):
# Pressing Tab auto-completes the code below
user = db.session.query(User).filter_by(id=user_id).first()
if not user:
raise HTTPException(status_code=404, detail="User not found")
return UserProfile(
name=user.name,
email=user.email,
avatar_url=user.avatar_url,
)
Tab Completion Optimization Tips:
- Write comments first: Writing a comment above a function helps AI understand intent
- Use type hints: Specifying parameter and return types improves accuracy
- Leverage pattern repetition: AI learns patterns when you write similar functions in succession
- Reject with Esc: Quickly rejecting unwanted suggestions with Esc helps AI learn
4.2 Cmd+K Inline Editing
Cmd+K (Mac) or Ctrl+K (Windows/Linux) lets you request AI modifications directly within the code. Select code, press Cmd+K, and an inline prompt appears.
Usage example:
// Select code and Cmd+K -> "Add error handling"
// Before:
async function fetchData(url: string) {
const response = await fetch(url)
const data = await response.json()
return data
}
// After (Cmd+K applied):
async function fetchData(url: string) {
try {
const response = await fetch(url)
if (!response.ok) {
throw new Error(`HTTP error! status: ${response.status}`)
}
const data = await response.json()
return data
} catch (error) {
console.error(`Failed to fetch data from ${url}:`, error)
throw error
}
}
Advanced Cmd+K usage:
| Prompt | Action |
|---|---|
| "Add types" | Add TypeScript type annotations to variables |
| "Optimize performance" | Apply useMemo, useCallback, etc. |
| "Write tests" | Generate unit tests for selected function |
| "Add docstring" | Add JSDoc or Python docstring |
| "Refactor" | Restructure code for cleanliness |
4.3 Chat (AI Chat)
The sidebar chat is a conversational interface where you can ask questions about code, request explanations, and get debugging help.
Effective chat usage:
# Bad example
"Fix this code"
# Good example
"An infinite loop occurs in this useEffect.
Analyze the dependency array and suggest fixes.
@file:src/hooks/useAuth.ts"
Common chat patterns:
- Debugging: "Analyze why this error message appears: [error message]"
- Code review: "@file:path Review this file focusing on security, performance, and readability"
- Architecture consultation: "@codebase Analyze this project's folder structure and suggest improvements"
- Learning: "Explain the design patterns used in this code"
4.4 Composer Agent (Agent Mode)
Composer Agent is Cursor's most powerful feature. It does not just suggest code — it autonomously plans and executes tasks.
What agent mode can do:
- Create and modify multiple files simultaneously
- Execute terminal commands (npm install, pip install, etc.)
- Explore and manipulate the file system
- Run tests and modify code based on results
- Generate Git commit messages
[Agent Mode Execution Example]
Prompt: "Add JWT authentication middleware to the Express server"
Agent execution order:
1. Analyze package.json -> Determine jsonwebtoken package needed
2. Terminal: npm install jsonwebtoken
3. Create src/middleware/auth.ts (JWT verification middleware)
4. Modify src/routes/index.ts (apply middleware)
5. Modify src/types/express.d.ts (extend Request type)
6. Modify .env.example (add JWT_SECRET)
7. Display all changes in Diff View
5. Mastering .cursorrules
5.1 What is .cursorrules?
.cursorrules is a configuration file located at the project root that customizes Cursor AI's behavior for your project. By defining coding style, library preferences, and architecture rules, the AI adheres to them when generating code.
File location and priority:
project-root/
.cursorrules # Project-wide rules
.cursor/
rules/
react.mdc # React-specific rules
api.mdc # API-specific rules
testing.mdc # Testing-specific rules
Starting mid-2025, Cursor supports topic-specific rule files (.mdc) in the .cursor/rules/ directory in addition to .cursorrules. This allows modularizing rules by concern.
5.2 React/Next.js Project Example
# Project: Next.js 14+ App Router
## Tech Stack
- Next.js 14 with App Router
- TypeScript (strict mode)
- Tailwind CSS
- Prisma ORM
- React Query (TanStack Query v5)
## Code Style
- Use functional components only
- Prefer named exports over default exports
- Use 'use client' directive only when necessary
- Follow the component/hook/utility separation pattern
## File Naming
- Components: PascalCase (UserProfile.tsx)
- Hooks: camelCase with use prefix (useAuth.ts)
- Utils: camelCase (formatDate.ts)
- Pages: lowercase with hyphens (user-profile/page.tsx)
## Component Structure
1. Imports (external, then internal)
2. Types/Interfaces
3. Component function
4. Helper functions (inside component if small, outside if reusable)
## API Routes
- Always use Route Handlers (app/api/...)
- Return NextResponse with appropriate status codes
- Validate request body with Zod schemas
- Handle errors with try-catch and meaningful error messages
## Testing
- Write tests alongside components (Component.test.tsx)
- Use React Testing Library
- Test user behavior, not implementation details
5.3 Python/FastAPI Project Example
# Project: FastAPI Microservice
## Tech Stack
- Python 3.12+
- FastAPI
- SQLAlchemy 2.0 (async)
- Pydantic v2
- Alembic for migrations
## Code Style
- Follow PEP 8
- Use type hints everywhere
- Prefer async/await over sync code
- Maximum function length: 30 lines
- Use dependency injection via FastAPI Depends
## Project Structure
- app/api/routes/ - Route handlers
- app/core/ - Config, security, database
- app/models/ - SQLAlchemy models
- app/schemas/ - Pydantic schemas
- app/services/ - Business logic
- app/utils/ - Helper functions
## Error Handling
- Use custom exception classes
- Always return structured error responses
- Log errors with structlog
## Naming Conventions
- Functions: snake_case
- Classes: PascalCase
- Constants: UPPER_SNAKE_CASE
- Private methods: \_leading_underscore
5.4 Go Project Example
# Project: Go REST API
## Tech Stack
- Go 1.22+
- Chi router
- sqlc for database queries
- golang-migrate for migrations
## Code Style
- Follow Go standard conventions
- Keep functions under 40 lines
- Use table-driven tests
- Return errors, don't panic
- Use context.Context as first parameter
## Project Structure
- cmd/ - Application entrypoints
- internal/ - Private application code
- pkg/ - Public library code
- api/ - API definitions and handlers
## Error Handling
- Wrap errors with fmt.Errorf and %w verb
- Use custom error types for domain errors
- Log at the boundary, return errors elsewhere
## Testing
- Test files next to source files (\*\_test.go)
- Use testify for assertions
- Use gomock for mocking interfaces
5.5 .cursorrules Best Practices
- Be specific: Instead of "write good code", say "functions under 30 lines, max 4 parameters"
- Include examples: Provide examples of the code style you want
- List prohibitions: The "never do" list is as important as the "do" list
- Share with team: Commit .cursorrules to Git so the whole team experiences consistent AI behavior
- Update regularly: As the project evolves, update the rules accordingly
- Modularize: When rules exceed 300 lines, split them into the
.cursor/rules/directory
6. Context Management Strategy
6.1 The @ Mention System
Cursor's @ mentions are the key mechanism for specifying context for the AI. Providing the right context determines 80% of AI response quality.
| Mention | Description | Usage Example |
|---|---|---|
@file | Reference a specific file | @file:src/auth.ts "Analyze security vulnerabilities" |
@folder | Reference an entire folder | @folder:src/components "Check component consistency" |
@codebase | Search entire codebase | @codebase "Analyze impact of DB schema change" |
@web | Web search | @web "React 19 new features" |
@docs | Reference documentation | @docs:NextJS "App Router migration guide" |
@git | Git history | @git "Analyze bug cause in recent commits" |
6.2 Optimizing the Context Window
AI models have a limit on how many tokens they can process at once (context window). Efficient context management is critical.
DO: Good context provision
# Specify concrete files
@file:src/services/payment.ts
@file:src/types/payment.d.ts
"Add retry logic for payment failures. Max 3 retries with exponential backoff."
DON'T: Poor context provision
# Dumping entire codebase with vague request
@codebase
"Fix payment stuff"
6.3 Using .cursorignore
Like .gitignore, the .cursorignore file specifies files and folders that AI should not reference:
# .cursorignore
node_modules/
dist/
build/
.env
*.min.js
*.map
package-lock.json
yarn.lock
This prevents AI from wasting context window space on irrelevant files and blocks sensitive information from being sent to the AI.
7. Composer Agent Real-World Workflows
7.1 Multi-file Refactoring
Scenario: Migrating API response format from REST to JSON:API spec
[Prompt Example]
"Change all API route response formats to JSON:API spec.
@folder:src/routes
@file:src/types/api.ts
Changes needed:
1. Convert response wrapper to data/meta/errors format
2. Unify error responses to JSON:API format
3. Add pagination meta information
4. Update related type definitions"
Agent execution process:
- Scan all route files in
src/routes/ - Add JSON:API response types to
src/types/api.ts - Modify response format in each route file
- Create
src/utils/response.tshelper functions - Update existing test files
- Display all changed files in Diff View
7.2 New Feature Implementation
Scenario: Adding a user notification system
[Prompt Example]
"Implement a real-time notification system.
@codebase
Requirements:
1. WebSocket-based real-time notifications
2. Store notifications in DB (read/unread status)
3. Notification list API (with pagination)
4. Frontend notification bell component
5. Unread notification count badge"
7.3 Bug Fixing Workflow
[Effective Bug Report Format]
"Fix the following bug:
Symptom: After login, redirect enters infinite loop
Reproduction: Login -> Dashboard -> Refresh
Error log:
Error: Maximum update depth exceeded
@file:src/hooks/useAuth.ts
@file:src/app/dashboard/page.tsx
@file:src/middleware.ts
Suspected cause: useEffect dependency array issue"
8. Using the Built-in Browser
8.1 Setup and Basic Usage
Cursor's built-in browser can be opened with Cmd+Shift+B (Mac). It auto-detects and connects to the development server (localhost).
Core features:
- Live preview: Code changes reflected instantly via HMR (Hot Module Replacement)
- Element inspection: Element inspection similar to browser DevTools
- Screenshot sharing: Capture current UI state and attach to AI chat
- Responsive testing: Test at various viewport sizes
8.2 Visual Workflow with AI
[Visual Feedback Loop]
1. Write code (editor)
2. Check result in built-in browser
3. Capture screenshot
4. In AI chat: "The alignment is broken in this UI, fix it" + attach screenshot
5. AI modifies CSS/component
6. Accept -> Immediately verify changes in browser
7. Repeat
8.3 Frontend Development Pro Tips
- Split layout: Editor on the left, browser on the right at 50:50
- Multiple tabs: Open several pages as tabs and switch between them for testing
- Console usage: Copy errors from the browser console and share with AI
- Network tab: Inspect API responses and request AI debugging if issues found
9. Advanced Tips and Customization
9.1 Essential Keyboard Shortcuts
| Shortcut (Mac) | Shortcut (Windows/Linux) | Function |
|---|---|---|
| Cmd+K | Ctrl+K | Inline editing |
| Cmd+L | Ctrl+L | Open chat |
| Cmd+I | Ctrl+I | Open Composer |
| Cmd+Shift+I | Ctrl+Shift+I | Composer Agent mode |
| Tab | Tab | Accept AI suggestion |
| Esc | Esc | Reject AI suggestion |
| Cmd+Shift+B | Ctrl+Shift+B | Toggle built-in browser |
| Cmd+. | Ctrl+. | Stop current generation |
9.2 Custom Model Settings
Cursor allows selecting various models beyond the default Composer:
[Model Selection Guide]
Quick tasks (Tab completion, simple edits):
-> Composer (default, fastest)
Complex architecture decisions:
-> Claude 3.5 Sonnet (excellent reasoning)
Long code generation:
-> GPT-4o (stable long outputs)
Latest library-related:
-> @web + any model (supplement with web search)
You can set model defaults per feature in Settings:
- Tab completion: Composer (speed priority)
- Cmd+K: Composer or Claude (accuracy priority)
- Chat: Freely selectable
- Agent: Composer Agent or Claude (reasoning priority)
9.3 Privacy Mode
In enterprise environments, enabling Privacy Mode ensures:
- Code is not stored on Cursor servers
- Not used as training data for models
- Code indexing performed locally only
- SOC 2 Type II certification compliance
[Privacy Settings Path]
Settings -> General -> Privacy Mode -> Enable
Or in Business plan:
Admin Console -> Organization Settings -> Enforce Privacy Mode
9.4 AI Commit Message Generation
Cursor analyzes changes during Git commits and automatically generates commit messages:
# Example AI-generated commit message
feat: add JWT authentication middleware
- Create auth middleware with token verification
- Add refresh token rotation logic
- Update route handlers to use auth middleware
- Add JWT_SECRET to environment configuration
Specifying Conventional Commits format in .cursorrules generates messages that align with your team conventions.
10. Real-World Productivity Data and Benchmarks
10.1 Published Benchmark Results
Various developer surveys and benchmarks report productivity gains from Cursor:
| Metric | Measured Result | Source |
|---|---|---|
| Code writing speed | 2-3x improvement on average | Cursor official blog |
| Boilerplate reduction | 70-80% decrease | Developer survey (2025) |
| Debugging time | 40-50% reduction | Stack Overflow Survey |
| Code review time | 30% reduction (with BugBot) | GitHub Blog |
| New codebase onboarding | 2-3x faster | HackerNews reports |
10.2 Practical Impact by Use Case
Startup (2-5 person team):
[Before Cursor]
- MVP development: 3-4 weeks
- Bug fix cycle: 2-3 days
- Code review: 1-2 hours/day
[After Cursor]
- MVP development: 1-2 weeks
- Bug fix cycle: Hours
- Code review: 30 minutes (after AI pre-review)
Enterprise (50+ person team):
[Before Cursor]
- Legacy migration: Quarterly
- Code standardization: Continuous review needed
- Onboarding: 2-3 months
[After Cursor]
- Legacy migration: Weekly
- Code standardization: Auto-enforced via .cursorrules
- Onboarding: 2-3 weeks (AI explains code)
10.3 What is Vibe Coding?
Vibe Coding, a term proposed by Andrej Karpathy in 2025, is a new programming paradigm where AI handles most of the coding while the developer only provides direction. Cursor's Composer Agent is widely regarded as the best tool implementing Vibe Coding.
Characteristics of Vibe Coding:
- Developer describes what to build, AI decides how
- Code is judged by whether it works, not by reading every line
- Especially effective for prototyping and MVPs
- Review of AI-generated code remains essential for production
11. When NOT to Use Cursor
11.1 Limitations and Caveats
While Cursor is powerful, it is not optimal for every situation:
Technical limitations:
| Situation | Issue | Alternative |
|---|---|---|
| Very large codebases (1M+ lines) | Slow indexing, high memory usage | JetBrains + AI Assistant |
| Niche languages (Haskell, Erlang, COBOL) | Insufficient model training data | Dedicated LSP + standard IDE |
| Embedded/systems programming | Lack of hardware-specific context | CLion, PlatformIO |
| High-security environments | Requires internet connection | Offline IDE + local models |
| Vim/Neovim workflows | Vim emulation exists but is not perfect | Neovim + avante.nvim |
General AI coding caveats:
- Do not blindly trust AI-generated code: Always understand the logic and review
- Watch for security vulnerabilities: AI code may contain SQL injection, XSS, etc.
- License concerns: AI may copy open-source code verbatim
- Over-dependence: Relying solely on AI without building fundamentals limits growth
- Credit depletion: Indiscriminate agent mode usage drains credits quickly
11.2 When to Switch from Cursor to Another Tool
[Switching Signals]
- When a VS Code extension you need does not work in Cursor
-> Return to VS Code + Copilot
- When you need JetBrains' powerful refactoring tools
-> IntelliJ/PyCharm + AI Assistant
- When the entire team has a specific IDE standard
-> Follow team standard, but use Cursor as a personal tool alongside
- When you need to work in offline environments
-> VS Code + local AI models (Ollama + Continue)
12. Quiz
Let us test what you have learned.
Q1. How many times faster is Cursor 2.0's Composer model compared to previous models?
Answer: Approximately 4x
Cursor 2.0's Composer model is a self-trained frontier model specialized for coding, achieving approximately 4x faster code generation speed compared to previous GPT-4 or Claude-based responses. This was made possible through coding-specialized training and inference optimization.
Q2. What is the monthly price of the Cursor Pro plan and how many premium credits does it include?
Answer: $20/month, 500 premium credits
The Cursor Pro plan costs 0.04 per credit.
Q3. What is the role of .cursorrules and what modularization feature was added in mid-2025?
Answer: .cursorrules customizes AI behavior per project, and the .cursor/rules/ directory supports topic-specific .mdc rule files
.cursorrules sits at the project root to define coding style, library usage, and architecture rules. Starting mid-2025, the .cursor/rules/ directory supports topic-specific rule files like react.mdc and api.mdc, enabling rule modularization by concern.
Q4. List the six @ mention types available in Cursor for specifying context.
Answer: @file, @folder, @codebase, @web, @docs, @git
Purpose of each mention:
- @file: Reference a specific file
- @folder: Reference an entire folder
- @codebase: Search the entire codebase
- @web: Supplement with web search for latest information
- @docs: Reference specific framework/library documentation
- @git: Analyze Git history
Providing the right context determines 80% of AI response quality, so always specify the exact files and folders you need.
Q5. Name three situations where Cursor is not suitable and the alternative for each.
Answer:
- Very large codebases (1M+ lines): Indexing slowdowns and high memory usage occur. Alternative: JetBrains IDE + AI Assistant
- High-security environments: Cursor requires an internet connection, making it unusable in air-gapped environments. Alternative: Offline IDE + local AI models (Ollama + Continue)
- Vim/Neovim-centric workflows: Vim emulation is supported but differs from the native Vim experience. Alternative: Neovim + avante.nvim plugin
References and Links
- Cursor Official Site
- Cursor Official Documentation
- Cursor Changelog
- Cursor Forum
- Anysphere Blog
- VS Code Marketplace — Cursor-compatible extensions
- GitHub Copilot Documentation
- Windsurf (Codeium) Official Site
- awesome-cursorrules GitHub Repository — Community .cursorrules collection
- Andrej Karpathy - Vibe Coding — Origin of the Vibe Coding concept
- Stack Overflow Developer Survey 2025
- The Pragmatic Engineer - AI Coding Tools
- Cursor vs Copilot Comparison (YouTube) — Fireship, Theo, and other popular channels
- AI Code Generation Security Best Practices — OWASP AI security guide
- Cursor Privacy Whitepaper — SOC 2 Type II certification document
- Claude Code Official Documentation — Competitor tool comparison reference