功能

更快地构建软件

Tab 键

Cursor 包含强大的自动补全功能,可预测你的下一次编辑。一旦启用后,它会一直工作,并根据你最近的更改提供跨多行的代码建议。

Multi-Line Edits

多行编辑

Cursor 可以一次性提供多个编辑建议,帮助你节省时间。

智能重写

随意输入后,Cursor 会自动修正你的错误。

光标预测

Cursor 能预测你的下一个光标位置,让你更顺畅地浏览代码。

代理人

Cursor 的 agent 模式可以端到端完成任务。它运行迅速,同时让程序员时刻掌控。可在 Composer 中选择“agent”来试用。

自动检索上下文

借助自定义检索模型,Cursor 能理解代码库,减少你手动添加上下文的需求。

执行命令

Cursor 可以自动编写并运行终端命令。默认情况下,你需要确认每条命令。

错误循环

Cursor 能自动检测 lint 错误并应用修复,减少手动调试的需求。

Fast Edits

Agent intelligently applies the code suggestions from chat back into your codebase near instantly.

Proprietary Models

Built from billions of datapoints, Agent uses several custom models alongside the APIs.

Reference your Code

Reference code with @ symbols to be used as context for the AI. Just type @ to see a list of all the files and code symbols in your folder.

Use Images

Hit the image button under chat or drag an image into the input box to include visual context into chat.

Ask the Web

Get up-to-date information from the internet with @Web. Cursor will search the web for you and use the latest information to answer your question.

Use Documentation

Reference popular libraries using @LibraryName, or add your own using @Docs → Add new doc.

Ctrl K

Ctrl K 让你使用 AI 来编辑和编写代码。要编辑时,可先选中部分代码,点击“Edit”,并描述需要如何更改。若想生成全新代码,只需在未选中任何内容的情况下输入 Ctrl K。

终端 Ctrl K

在终端中使用 Ctrl K,以自然语言编写终端命令。Cursor 会将其转换为你所需的命令。

快速提问

如果你对某段代码有简单疑问,先选中它,然后点击“quick question”即可立刻获得解答。