Official Tutorial

Cursor:重塑代码逻辑的AI编译器官方下载

基于次世代AI引擎,Cursor 深度集成 Claude 3.5 与 GPT-4,为开发者提供超越补全的创作体验。与其编写代码,不如与AI共同构思。

立即免费下载 核心特性
// Copilot++ Active
function refactorArchitecture() {
// AI is predicting your next 10 lines...
const context = await cursor.indexProject();
}

三大创新支柱

这些核心技术使得 Cursor 不仅仅是一个编辑器,更是一个理解你意图的思维伙伴。

01

Copilot++ Engine

Utilizing a custom-trained transformer model optimized for sub-100ms latency, predicting multi-line edits before the developer realizes they are needed.

Predictive Cursor Mid-token Completion Context-Aware Refactoring
45%
Keystroke
Reduction
02

Local Codebase Indexing (RAG)

Creates a localized vector embedding of your entire project structure, allowing the AI to understand cross-file dependencies and architectural patterns.

Zero-Config Indexing Privacy-First Embeddings Symbolic Link Awareness
99.8%
Retrieval
Accuracy
03

Cursor Composer

A multi-file generation interface that treats the codebase as a single malleable entity, capable of executing complex migrations across dozens of files simultaneously.

Multi-file Diffing Iterative Refinement System-wide Refactoring
10x
Boilerplate
Acceleration

快速上手:四个步骤

01

导入现有配置

Cursor 基于 VS Code 构建,你可以一键导入所有的插件、主题和快捷键。无需学习成本,即可获得 AI 加持。

02

开启全库索引

在设置中启用 "Local Indexing"。Cursor 会在后台扫描您的代码库,为 AI 提供全局背景知识,使其能够回答如 "这段逻辑在哪个模块实现?" 的问题。

03

使用 Command+K 对话

选中代码并按下 Cmd+K,直接用自然语言描述修改要求。AI 将实时生成 Diff 预览,您可以审阅并一键应用更改。

$ Update all API endpoints to v2...
04

Composer 跨文件重构

按下 Cmd+I 进入 Composer 模式。这是目前最强大的多文件重构工具,可以根据一个简单的指令,同时修改项目中涉及的数十个文件。

最新进阶指南

如何编写完美的 .cursorrules

深度定制 AI 的行为准则,让它更懂你的团队规范。

Claude 3.5 Sonnet 实战

为什么它目前是 Cursor 中最平衡的编程模型。

从 VS Code 迁移的 10 个技巧

平滑过渡到 AI 原生编辑器环境。