設定本機程式碼集認知
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
透過索引和支援技術,本機程式碼集認知可提升 Gemini Code Assist 回覆的相關性。
本機程式碼集認知功能預設為啟用。如要停用本機程式碼庫感知功能,請執行下列工作:
VS Code
在 IDE 中,依序前往「Settings」 >「Extensions」>「Gemini Code Assist」。
搜尋「本機程式碼集認知」設定。
取消勾選核取方塊即可停用本地程式碼庫感知功能。
重新載入 IDE。
IntelliJ
IntelliJ 和其他 JetBrains IDE 的 Gemini Code Assist 不支援本機程式碼集認知設定。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-08-31 (世界標準時間)。
[null,null,["上次更新時間:2025-08-31 (世界標準時間)。"],[],[],null,["# Configure local codebase awareness\n\n| **Preview**\n|\n| Specifying folders to use as context with Gemini Code Assist\n| is a feature that is in preview. Products and features that are in preview are\n| available \"as is\".\n\nLocal codebase awareness improves the relevance of\nGemini Code Assist responses through indexing and supporting\ntechniques.\n\nBy default, local codebase awareness is enabled. To disable local codebase\nawareness, perform the following tasks: \n\n### VS Code\n\n1. In your IDE, navigate to **Settings** \\\u003e **Extensions**\n \\\u003e **Gemini Code Assist**.\n\n2. Search for the **Local Codebase Awareness** setting.\n\n3. Unselect the checkbox to disable local codebase awareness.\n\n4. Reload your IDE.\n\n### IntelliJ\n\nLocal codebase awareness configuration settings aren't supported in\nGemini Code Assist for IntelliJ and other JetBrains IDEs."]]