SUMMARY
Cursor (IDE) uses mdc configuration while Windsurf (IDE) uses markdown. They differ on 3 of 11 compared features. Both tools provide AI-assisted development but take different approaches to project configuration.
FEATURE COMPARISON
| Feature | Cursor | Windsurf |
|---|---|---|
| Config format | mdc | markdown |
| Hierarchy support | ✓ | ✓ |
| Global config | ✓ | ✓ |
| Project config | ✓ | ✓ |
| Subdirectory scoping | ✓ | ✓ |
| File inclusion / imports | ✗ | ✗ |
| Ignore file | .cursorignore | .codeiumignore |
| IDE integration | ✓ | ✓ |
| Schema / structure | Hybrid (MDC frontmatter + Markdown) | Free-form (Markdown) |
| Git committed | ✓ | ✓ |
| Encoding | UTF-8 | UTF-8 |
FILE MAPPING
| Purpose | Cursor | Windsurf |
|---|---|---|
| Project rules (primary) | .cursor/rules/*.mdc | .windsurfrules |
| Project rules (directory) | .cursor/rules/*.mdc | .windsurf/rules/*.md |
| Ignore patterns | .cursorignore | (not supported) |
| Project rules | .cursor/rules/*.mdc | .windsurf/rules/*.md |
| Project rules | AGENTS.md | AGENTS.md |
SIDE-BY-SIDE CODE SAMPLES
---
description: React component conventions and patterns
globs: "*.tsx"
alwaysApply: false
---
# React Component Rules
- Use functional components with explicit return types
- Define props interface directly above the component
- Export components as named exports, never default
- Use Tailwind CSS utility classes exclusively
---
trigger: glob
globs: "**/*.test.ts"
---
# Testing Conventions
- Use Vitest as the test runner
- Colocate test files next to source files
- Use describe blocks organized by function/component name
- Prefer userEvent over fireEvent in component tests
- Mock external services; never hit real APIs in unit tests
KEY DIFFERENCES
Cursor: mdc. Windsurf: markdown.
Cursor: .cursorignore. Windsurf: .codeiumignore.
Cursor: Hybrid (MDC frontmatter + Markdown). Windsurf: Free-form (Markdown).
Cursor uses the MDC (Markdown Components) format with structured YAML frontmatter for rule metadata (description, globs, alwaysApply). Windsurf uses plain Markdown files — .windsurfrules at root and .windsurf/rules/*.md with simpler frontmatter for trigger conditions.
Cursor rules can be always-on, glob-matched to specific file patterns, or manually invoked via @-mention. Windsurf rules in .windsurf/rules/ support trigger-based activation but the root .windsurfrules is always active.
Cursor supports .cursorignore for excluding files from AI context. Windsurf does not currently have a dedicated ignore file mechanism.
Cursor is transitioning from the legacy .cursorrules single-file format to .cursor/rules/*.mdc. Windsurf started with .windsurfrules and added .windsurf/rules/ as a complementary system rather than a replacement.
WHICH SHOULD I USE?
PORTABILITY TIP
# Maintain a single source of truth:
cp AI-INSTRUCTIONS.md CLAUDE.md
cp AI-INSTRUCTIONS.md .cursorrules
cp AI-INSTRUCTIONS.md AGENTS.md