以下是关于如何使用 Cursor 的详细介绍:
Read more about how we built instant apply in our[blog post](https://cursor.com/blog/instant-apply).在我们的[博客文章](https://cursor.com/blog/instant-apply)中阅读更多关于我们如何构建即时申请的信息。Cursor’s Apply allows you to quickly integrate a codeblock suggestion from the chat into your code.Cursor的Apply允许您将聊天中的代码块建议快速集成到您的代码中。[heading3][heading3]Apply Code Blocks应用代码块[content]To apply a code block suggestion,you can press on the play button in the top right corner of each chat code block.要应用代码块建议,您可以按每个聊天代码块右上角的播放按钮。This will edit your file to incorporate the code produced by Chat.Since you can add the most context and have the most back-and-forth with the model in Chat,we recommend Chat + Apply for more complex AI-driven code changes.这将编辑您的文件以合并Chat生成的代码。由于您可以在Chat中添加最多的上下文并与模型进行最多的来回交流,因此我们建议使用Chat + Apply进行更复杂的AI驱动的代码更改。[heading3][heading3]Accept or Reject接受或拒绝[content]Once you have applied a code block,you can go through the diffs and accept or reject the changes.You can also click on the “Accept” or “Reject” buttons in the top right corner of the chat code block.应用代码块后,您可以浏览差异并接受或拒绝更改。您也可以点击聊天代码块右上角的“接受”或“拒绝”按钮。Ctrl/⌘ Enter to accept,Ctrl/⌘ Backspace to reject.Ctrl/⌘ Enter键接受,Ctrl/⌘ Backspace键拒绝。
Cursor comes with a set of third party docs crawled,indexed,and ready to be used as context.You can access them by using the @Docs symbol.Cursor附带一组第三方文档,这些文档已爬取、索引并准备好用作上下文。您可以使用@Docs符号访问它们。[heading3][heading3]Add Custom Docs添加自定义文档[content]If you want to crawl and index custom docs that are not already provided,you can do so by @Docs > Add new doc.The following modal will appear after you’ve pasted in the URL of your desired doc:如果要对尚未提供的自定义文档进行爬网和索引,可以通过@Docs > Add new doc来实现。粘贴所需文档的URL后,将显示以下模式:Cursor will then index and learn the doc,and you will be able to use it as context like any other doc.然后Cursor将索引并学习文档,您将能够像任何其他文档一样将其用作上下文。[heading3][heading3]Manage Custom Docs管理自定义文档[content]Under Cursor Settings > Features > Docs,you will see the docs you have added.You can edit,delete,or add new docs here.在Cursor Settings > Features > Docs下,您将看到已添加的文档。您可以在此处编辑、删除或添加新文档。
Built to make you extraordinarily productive,Cursor is the best way to code with AI.Cursor旨在让您极其高效,它是使用AI进行编码的最佳方式。[heading1]使用cursor See Cursor In Action[content][Cursor-www cursor.mp4](https://bytedance.feishu.cn/space/api/box/stream/download/all/KYw3bCQmIozhEmx7qhvca0Mbnsd?allow_redirect=1)[heading1]读懂数据库Knows your codebase[content]Get the best answers from your codebase — or refer to specific files or docs.Use the model's code in one click.从您的代码库中获得最佳答案——或参考特定文件或文档。一键使用模型中的代码。[chat.mp4](https://bytedance.feishu.cn/space/api/box/stream/download/all/WjGybvlA3owjybxj9A8cQyTNntd?allow_redirect=1)[heading1]使用tab来编辑Just hit tab[content]Cursor lets you breeze through changes by predicting your next edit.Cursor通过预测您的下一个编辑,让您轻松完成更改。[cpp-full-video.mp4](https://bytedance.feishu.cn/space/api/box/stream/download/all/VyF9bY43wo32T3x3wfpcTSXJnrg?allow_redirect=1)