Codebase Indexing 代码库索引
Codebase Indexing 代码库索引
Codebase Indexing 代码库索引 Codebase Indexing 代码库索引 Modified September 7, 2024 Codebase Indexing 代码库索引 Index your Codebase 为代码库编制索引 For better and more accurate codebase answers using @codebase or Ctrl/⌘ Enter, you can index your codebase. Behind the scenes, Cursor computes embeddings for each file in your codebase, and will use these to improve the accuracy of your codebase answers. 要使用 @codebase 或 Ctrl/⌘ Enter 更好、更准确的代码库答案,您可以为您的代码库编制索引。在幕后,Cursor 会计算代码库中的每个文件的嵌入向量,并将使用这些嵌入向量来提高代码库答案的准确性。 Your codebase index will automatically synchronize with your latest codebase changes. 您的代码库索引将自动与您的最新代码库更改同步。 The status of your codebase indexing is under Cursor Settings Features Codebase Indexing. 代码库索引的状态位于 Cursor Settings Features Codebase Indexing 下。 Advanced Settings 高级设置 By default, Cursor will index all files in your codebase if privacy mode is not enabled. 默认情况下,如果未启用隐私模式,Cursor 将索引代码库中的所有文件。 You can also expand the Show Settings section to access more advanced options. Here, you can decide whether you want to enable automatic indexing for new repositories and configure the files that Cursor will ignore during repository indexing, in addition to your .gitignore settings. 您还可以展开 Show Settings (显示设置) 部分以访问更多高级选项。在这里,除了 .gitignore 设置之外,您还可以决定是否要为新存储库启用自动索引,并配置 Cursor 在存储库索引期间将忽略的文件。 If you have any large content files in your project that the AI definitely doesn’t need to read, ignoring those files could improve the accuracy of the answers. 如果您的项目中有任何 AI 绝对不需要读取的大型内容文件,则忽略这些文件可以提高答案的准确性。 ignoring those files 则忽略这些文件 Codebase Indexing 代码库索引 Index your Codebase 为代码库编制索引 For better and more accurate codebase answers using @codebase or Ctrl/⌘ Enter, you can index your codebase. Behind the scenes, Cursor computes embeddings for each file in your codebase, and will use these to improve the accuracy of your codebase answers. 要使用 @codebase 或 Ctrl/⌘ Enter 更好、更准确的代码库答案,您可以为您的代码库编制索引。在幕后,Cursor 会计算代码库中的每个文件的嵌入向量,并将使用这些嵌入向量来提高代码库答案的准确性。 Your codebase index will automatically synchronize with your latest codebase changes. 您的代码库索引将自动与您的最新代码库更改同步。 The status of your codebase indexing is under Cursor Settings Features Codebase Indexing. 代码库索引的状态位于 Cursor Settings Features Codebase Indexing 下。 Advanced Settings 高级设置 By default, Cursor will index all files in your codebase if privacy mode is not enabled. 默认情况下,如果未启用隐私模式,Cursor 将索引代码库中的所有文件。 You can also expand the Show Settings section to access more advanced options. Here, you can decide whether you want to enable automatic indexing for new repositories and configure the files that Cursor will ignore during repository indexing, in addition to your .gitignore settings. 您还可以展开 Show Settings (显示设置) 部分以访问更多高级选项。在这里,除了 .gitignore 设置之外,您还可以决定是否要为新存储库启用自动索引,并配置 Cursor 在存储库索引期间将忽略的文件。 If you have any large content files in your project that the AI definitely doesn’t need to read, ignoring those files could improve the accuracy of the answers. 如果您的项目中有任何 AI 绝对不需要读取的大型内容文件,则忽略这些文件可以提高答案的准确性。 ignoring those files 则忽略这些文件