TOKREPO · 工具
Cursor logo
IDE · Anysphere

Cursor

cursor.com

它是什么

Cursor 是 2025–2026 年 AI 编码赛道里跑出来的 AI-first 代码编辑器。它是 VS Code 的分叉,把 agent 直接塞进编辑器表面:并排 diff、行内编辑、Composer 多文件模式 —— 一句 prompt 推动整个项目的变更。由 Anysphere 在旧金山打造,是 agent-coding 经济相当大一块的默认 IDE。

什么时候用 Cursor:

  • 想要 IDE 反馈循环 —— agent 干活时同时能看 diff、tooltip、jump-to-definition
  • 团队标准化用 VS Code,想要熟悉的界面
  • 需要 Composer 的 "一次改多个文件" 模式,不想自己写脚本

它为什么突出

功能 给你什么
Composer 一句 prompt 驱动多文件编辑;先审后应用
.mdc 规则 项目里按文件夹、按语言、或始终生效的规则文件
Agent 模式 Cursor 的自主循环 —— 类似 Claude Code 的 --continue
MCP 支持 原生 Model Context Protocol;server 跟 Claude Code 互通
Tab 补全 强力行内补全模型,尤其在 TypeScript / Python 里
隐私模式 Pro 可切到 "我的代码不参与训练"
免费档 免费档大方;Pro 加更高配额和前沿模型

怎么装

# macOS / Linux / Windows
# 从 cursor.com/downloads 下载,或者:

brew install --cask cursor   # macOS

# 然后打开项目:
cursor .

首次启动登录(Pro / Free),Cursor 会扫描项目建上下文。在 .cursor/rules/*.mdc 里加规则文件按文件夹整形行为。

在 Cursor 里装啥

三个 TokRepo pack 覆盖 Cursor "开箱 → 生产" 这段:

  • Cursor 规则库 —— Python / React / Devin 工程师模式 + 从文档自动生成 .mdc 的工具
  • MCP 服务器全家桶 —— Claude Code 用户接的同一批 MCP server,Cursor 原生兼容
  • AI 编码 Agent 横评 —— 还在 Cursor 和 Claude Code 之间犹豫时用
tokrepo install pack/cursor-rules-library
tokrepo install pack/mcp-server-stack

Cursor 在下一次会话读规则。

常见坑

  • .cursorrules(旧)vs .cursor/rules/*.mdc(新) —— 旧单文件格式还能用但不支持按文件夹划范围。复杂配置请迁移到 .mdc
  • Composer 容易扩散 —— 没有规则约束 scope,Composer 会改不相关的文件。永远在 prompt 里钉死范围,或在 .mdcglobs 字段里钉。
  • MCP 服务器要按 workspace 重加 —— Cursor MCP 配置默认是 workspace 本地。server 没加载先看 ~/.cursor/mcp.json
  • 大文件 Tab 补全 —— 上下文预算大约 4–8k 行封顶;太大的文件拆开行内 UX 才好。
9个资产·6个 config·3个 prompt
全部资产

9 个资产适配 Cursor

Prompt#01
Awesome Cursor Rules — AI Coding Standards for 30+ Stacks

Curated .cursorrules files for 30+ tech stacks. Drop into your project root so Cursor AI follows your coding standards automatically.

by TokRepo Curated·389 views
$ tokrepo install awesome-cursor-rules-ai-coding-standards-30-stacks-ca000374
Prompt#02
Cursor Tips — Advanced AI Coding Workflow Guide

Comprehensive guide to advanced Cursor workflows. Covers Composer, multi-file edits, .cursorrules, codebase indexing, and prompt engineering for 10x AI coding productivity.

by Prompt Lab·138 views
$ tokrepo install cursor-tips-advanced-ai-coding-workflow-guide-b7e65852
Config#03
Cursor Rules: Python — Clean Code with AI

Cursor rules for Python development. Enforces PEP 8 style, type hints, docstrings, pytest patterns, and modern Python 3.12+ idioms.

by Cursor · Anysphere·117 views
$ tokrepo install cursor-rules-python-clean-code-ai-f18133e8
Config#04
Cursor Rules: React + TypeScript — Component & Hooks Patterns

Cursor rules for React with TypeScript. Enforces functional components, hooks patterns, proper typing, and testing conventions.

by Cursor · Anysphere·96 views
$ tokrepo install cursor-rules-react-typescript-component-hooks-patterns-ac71b14f
Config#05
Cursor Rules MDC Generator — Auto-Generate from Docs

Auto-generate Cursor .mdc rule files for any library using Exa semantic search and LLM-powered documentation extraction.

by AI Open Source·95 views
$ tokrepo install cursor-rules-mdc-generator-auto-generate-docs-8ced00e7
Config#06
Devin Cursorrules — Turn Cursor into an AI Engineer

A .cursorrules configuration that gives Cursor/Windsurf Devin-like capabilities: automated planning, self-correction, web browsing, and multi-agent collaboration. 6,000+ GitHub stars.

by AI Open Source·93 views
$ tokrepo install devin-cursorrules-turn-cursor-into-ai-engineer-92824589
Prompt#07
Cursor Tab — AI Autocomplete That Predicts Your Next Edit

Cursor's predictive code completion that suggests multi-line edits before you type. Cursor Tab uses context from your codebase and recent changes to predict the next logical edit.

by Prompt Lab·74 views
$ tokrepo install cursor-tab-ai-autocomplete-predicts-your-next-edit-6efaef05
Config#08
Awesome Cursor Rules MDC — Auto-Generated .mdc Files

Collection of auto-generated Cursor .mdc rule files for 800+ libraries using Exa search and LLM. Drop into .cursor/rules/ for AI-aware coding standards. CC0, 3,400+ stars.

by AI Open Source·64 views
$ tokrepo install awesome-cursor-rules-mdc-auto-generated-mdc-files-f38ab5c1
Config#09
Void — Open-Source Cursor Alternative

Void is an open-source AI code editor alternative to Cursor. 28.5K+ stars. Checkpoints, custom models, local hosting, built on VS Code. Apache 2.0.

by AI Open Source·51 views
$ tokrepo install void-open-source-cursor-alternative-81637930
FAQ

常见问题

Cursor 免费吗?

Cursor 有大方的免费档。Pro($20/月)加更高请求配额、能用前沿模型(Opus 4.7 / GPT-5 等)和隐私模式。Business 加 SSO 和管理员控制。价格见 cursor.com/pricing。

Cursor 比 Claude Code 强吗?

形态不同。Cursor 是把 agent 嵌进 IDE;Claude Code 是 CLI agent。要紧凑反馈循环和可视 diff —— Cursor 赢。要 headless 任务、CI、长重构 —— Claude Code 赢。多数工程师两个都用。

我现有的 VS Code 扩展能在 Cursor 用吗?

能 —— Cursor 是 VS Code 分叉,直接支持 VS Code 扩展市场。多数扩展直接能用;少数深度勾进编辑器聊天 UI 的会冲突需要禁用。

Cursor 支持 MCP 吗?

支持。Cursor 自 2025 年起原生支持 MCP。在 ~/.cursor/mcp.json 或 workspace 本地等效位置配 server。多数为 Claude Code 写的 server(Postgres MCP / GitHub MCP / Filesystem MCP 等)在 Cursor 里不用改就能跑。

Cursor 规则跟 Claude Code subagent 区别?

Cursor 规则是静态指令文件,会被附进所有匹配 glob 的对话。Claude Code subagent 是带自己系统提示词的完整子 agent,按任务描述派发。规则塑造行为;subagent 增加能力。Cursor 没有 subagent 等价物。

更多工具

回首页浏览全部工具

8 个工具精选 · favicon 真实 logo · 按类型聚合

返回工具总览