要将网站搜索修改为 AI 聊天提问回答,您可以参考以下内容:
在 Cursor 中:
在 Customize 自定义方面: 可以在 Cursor Settings>Features>Chat 下自定义光标聊天。相关设置包括:
Chat lets you talk with an AI that sees your codebase.The chat can always see your current file and cursor,so you can ask it things like:"Is there a bug here?".You can add particular blocks of code to the context with⌘+Shift+L or"@."You can chat with your entire codebase with⌘+Enter.Chat允许您与看到您的代码库的AI交谈。聊天室始终可以看到您当前的文件和光标,因此您可以向它询问诸如:“这里有bug吗?您可以使用⌘+Shift+L或“@”将特定代码块添加到上下文中。您可以使用⌘+Enter与整个代码库聊天。[heading3]Codebase Answers代码库答案[content]Use@Codebase or⌘Enter to ask questions about your codebase.Cursor will search your codebase to find relevant code to your query.使用@Codebase或⌘Enter询问有关您的代码库的问题。Cursor将搜索您的代码库以查找与您的查询相关的代码。[heading3]Reference your Code引用您的代码[content]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.带有@符号的参考代码,用作AI的上下文。只需键入@即可查看文件夹中所有文件和代码符号的列表。[heading3]Use Images使用图像[content]Hit the image button under chat or drag an image into the input box to include visual context into chat.点击聊天下方的图片按钮,或将图片拖到输入框中,将视觉上下文包含在聊天中。[heading3]Ask the Web询问Web[content]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.使用@Web从Internet获取最新信息。Cursor将为您搜索Web并使用最新信息来回答您的问题。
You can customize the Cursor Chat under Cursor Settings>Features>Chat.您可以在Cursor Settings>Features>Chat下自定义光标聊天。These settings include:这些设置包括:Always search the web for answers.始终在网上搜索答案。This will make the AI model browse the web each query for the most up-to-date information.这将使AI模型在每个查询中浏览Web以获取最新信息。Add chat fading animation.添加聊天淡入淡出动画。This adds a smooth animation to the AI messages as they are generated.这会在生成AI消息时为其添加平滑的动画。Default to no context.默认为无上下文。This will make the AI model only use the user message as context,and no additional context such as current file will be included.这将使AI模型仅使用用户消息作为上下文,并且不会包含其他上下文,例如当前文件。Auto scroll chat.自动滚动聊天。This will automatically scroll the chat as the AI generates text when at the bottom of the thread.这将在AI在线程底部生成文本时自动滚动聊天。Narrow scrollbar in the chat pane.在聊天窗格中缩小滚动条。Show chat history when starting a new chat.开始新聊天时显示聊天历史记录。