Configure local codebase awareness
Stay organized with collections
Save and categorize content based on your preferences.
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
In your IDE, navigate to Settings > Extensions
> Gemini Code Assist.
Search for the Local Codebase Awareness setting.
Unselect the checkbox to disable local codebase awareness.
Reload your IDE.
IntelliJ
Local codebase awareness configuration settings aren't supported in
Gemini Code Assist for IntelliJ and other JetBrains IDEs.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-03-24 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-03-24 UTC."],[],[]]