Apply 应用
Apply 应用
Apply 应用 Apply 应用 Modified September 6, 2024 Apply 应用 Read more about how we built instant apply in our blog post. 在我们的博客文章中阅读更多关于我们如何构建即时申请的信息。 Cursor’s Apply allows you to quickly integrate a codeblock suggestion from the chat into your code. Cursor 的 Apply 允许您将聊天中的代码块建议快速集成到您的代码中。 Apply Code Blocks 应用代码块 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 驱动的代码更改。 Accept or Reject 接受或拒绝 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 键拒绝。 blog post 博客文章 Apply 应用 Read more about how we built instant apply in our blog post. 在我们的博客文章中阅读更多关于我们如何构建即时申请的信息。 blog post 博客文章 Cursor’s Apply allows you to quickly integrate a codeblock suggestion from the chat into your code. Cursor 的 Apply 允许您将聊天中的代码块建议快速集成到您的代码中。 Apply Code Blocks 应用代码块 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 驱动的代码更改。 Accept or Reject 接受或拒绝 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 键拒绝。