Skip to content

Cursor

Official Docs: cursor.com/docs Category: IDE

Cursor is a VS Code fork with AI deeply integrated into the editing experience. It's become one of the most popular AI coding tools due to its intuitive interface and powerful features.

Works With

Cursor supports multiple AI models including Claude, GPT-4, and Gemini. You can switch models based on your needs.

Configuration

See Understanding Config Directories for general concepts.

Cursor stores its configuration in ~/.cursor/:

File/Directory Purpose
mcp.json MCP server definitions
rules/ Development rules (.mdc files)
commands/ Custom slash commands

MCP Configuration

// ~/.cursor/mcp.json
{
  "mcpServers": {
    "context7": {
      "command": "npx",
      "args": ["-y", "@context7/mcp"]
    }
  }
}

Cursor Rules

Cursor rules (.mdc files) define coding standards and AI behavior. Place them in ~/.cursor/rules/ for global rules or project/.cursor/rules/ for project-specific rules.

Cursor Rules Guide

Tips & Tricks

Community Tips

This section collects tips from real users. Contribute your tips!

Keyboard shortcuts:

  • Cmd/Ctrl + K - Open AI chat inline
  • Cmd/Ctrl + L - Open AI chat panel
  • Cmd/Ctrl + Shift + K - Generate code

Workflow tips:

  • Use @codebase to give the AI context about your entire project
  • Use @docs to reference documentation
  • Create custom rules for your coding standards

Common Issues

"Model not responding"

  • Check your API key in settings
  • Verify your subscription status
  • Try switching to a different model

"Rules not loading"

  • Ensure rules are in .cursor/rules/ directory
  • Check file extension is .mdc
  • Restart Cursor after adding rules

Community Resources


Help Improve This Page

Know a tip that's not listed? Found a helpful video tutorial? Contribute to this page.