光标是如何在内部工作的?

You might have read the news that OpenAI is buying Windsurf for a whopping 3B! In other news, Anysphere, the parent company of Cursor, is raising 900M at a valuation of 9B$! That’s a lot of money for code-generating applications. However, it seems reasonable when you realize Cursor is currently at 300M of revenue. It is supposedly the fastest growing Software as a Service.

你可能已经读到新闻,OpenAI 以高达 30 亿的价格收购 Windsurf!在其他新闻中,Cursor 的母公司 Anysphere 正在以 90 亿美元的估值筹集 9 亿美元!对于代码生成应用程序来说,这是一笔巨款。然而,当你意识到 Cursor 目前的收入为 3 亿美元时,这似乎是合理的。它被认为是增长最快的 SaaS 产品

The question that is bugging me is why is Cursor or Windsurf special? How do they work internally? Aren’t they just a VS Code wrapper?

困扰我的问题是,为什么 Cursor 或 Windsurf 特别?它们是如何在内部工作的?难道它们只是 VS Code 的包装吗?

Cursor is an AI-first code editor built to boost developer productivity by writing and editing code. It’s a fork of Visual Studio Code aka VS Code augmented with powerful AI capabilities. Cursor acts like an intelligent pair programmer integrated directly into the IDE, understanding the project and assisting in real-time.

Cursor 是一个以 AI 为先的代码编辑器,旨在通过编写和编辑代码来提高开发者的生产力。它是Visual Studio Code(即 VS Code)的一个分支,增强了强大的 AI 功能。Cursor 像一个智能的配对程序员,直接集成到 IDE 中,理解项目并实时提供帮助。

But how? It does so by deeply indexing the codebase and learning the coding style of the user. By indexing the complete codebase as vector embeddings, it can catch errors, suggest improvements, and even refactor code easily.

但怎么做到的呢?它通过深入索引代码库并学习用户的编码风格来实现。通过将完整的代码库索引为向量嵌入,它可以轻松捕捉错误、建议改进,甚至重构代码。

I am assuming everyone has used Cursor at some point, but here’s a quick rundown of the top features of the app:

我假设每个人在某个时候都使用过 Cursor,但这里是该应用程序的主要功能的快速概述:

  • AI Chat (Contextual Assistant) – Cursor provides a chat sidebar where you can converse with an AI about your code. Unlike a generic chat, it’s aware of your current file, cursor location, and project context. You can ask questions like “Is there a bug in this function?” and get answers based on your actual code.
  • AI 聊天(上下文助手) – Cursor 提供一个聊天侧边栏,你可以与 AI 就你的代码进行对话。与通用聊天不同,它了解你当前的文件、光标...
开通本站会员,查看完整译文。

Главная - Вики-сайт
Copyright © 2011-2025 iteam. Current version is 2.143.0. UTC+08:00, 2025-05-19 18:57
浙ICP备14020137号-1 $Гость$