Configure local codebase awareness

  • Local codebase awareness, a preview feature in Gemini Code Assist, enhances response relevance through indexing and supporting techniques.

  • By default, local codebase awareness is enabled in Gemini Code Assist.

  • For VS Code users, local codebase awareness can be disabled via the Extensions settings.

  • Local codebase awareness configuration settings are not supported in Gemini Code Assist for IntelliJ and other JetBrains IDEs.

Local codebase awareness improves the relevance of Gemini Code Assist responses through indexing and supporting techniques. Gemini Code Assist uses the current open file as context. An agent is able to use tools to find and read the files it needs. You can also specify files and folders in your workspace context.

By default, local codebase awareness is enabled, but you can exclude files from Gemini Code Assist use, and VS Code users can disable local codebase awareness entirely. To disable local codebase awareness entirely, perform the following steps:

VS Code

  1. In your IDE, navigate to Settings > Extensions > Gemini Code Assist.

  2. Search for the Local Codebase Awareness setting.

  3. Unselect the checkbox to disable local codebase awareness.

  4. Reload your IDE.

IntelliJ

Local codebase awareness configuration settings aren't supported in Gemini Code Assist for IntelliJ and other JetBrains IDEs.