Code customization overview Stay organized with collections Save and categorize content based on your preferences.
Code customization, a feature inGemini Code Assist Enterprise, lets you getcode suggestions from Gemini Code Assist Enterprise that arebased on your organization's private repositories, and thus aligned to yourorganization's coding style.
With code customization, developers can use remote context from yourorganization directly in the IDE, as the following diagram shows:

As you code, Gemini Code Assist searches your private index forcode that is similar to what you're trying to write. It then includes relevantmatches in the code prompt and sends these matches to theGemini Code Assist recommendations service. Code customizationkeeps recommendations fresh by reindexing your codebase every 24 hours toensure that code suggestions remain up to date.Gemini Code Assist returns the generated code to you.
Unlike the full codebase awareness feature, which is limited to searching filesin the current folder and open tabs in your IDE, code customization searches allrepositories in your index. After code customization is set up, it works as partof the code completion and code generation features.
Both Gemini Code Assist and code customization are managedservices. You license usage by seats per month.
Securing access and storage of private code
Google provides security of your stored private code in several ways:
- We index and store your code in a dedicated single-tenant environment.
- Administrative access controlshelp prevent Google employees from accessing your content without justificationand, optionally, explicit approval.
- The Gemini model doesn't train on your private source code.
- Your results are private to you, and we don't share your results with othercustomers.
For further details on Google's security measures, see theGoogle security overview.
Here's how you can control access to your data:
- You can use Identity and Access Management (IAM) permissions to help control individualswho can get code suggestions from your codebase.
- You cancreate an
.aiexcludefileto choose specific repositories or parts of repositories thatGemini Code Assist indexes.
To configure code customization in your IDE, seeConfigure Gemini Code Assist code customization.
Limitations
- Google limits the number of code repository indexes to one for each projectand for each organization.
- The maximum number of repositories that can be indexed is 20,000.
- The maximum number of repository groups per code repository index is 500.
- The maximum number of repositories per repository group is 500.
- Code customization is supported in the VS CodeGemini Code Assist extension (version 2.18.0+), the IntelliJGemini Code Assist plugin (version 1.1.0),Cloud Workstations, and the Cloud Shell Editor.
- Code customization supports repositories hosted on github.com, gitlab.com,bitbucket.org, and on-premises repositories hosted on GitLab Enterprise, GitHubEnterprise, and Bitbucket Data Center.
- Code customization doesn't supportGitHub Enterprise Cloud IP restrictions.
- Code customization supports only Developer Connect connectionsin the following locations (regions):
us-central1europe-west1asia-southeast1
Code customization doesn't index media. Code customization supports onlydocumentation (in Markdown) and the following languages:
- C, C++, and C#
- Golang
- Java
- JavaScript
- Kotlin
- PHP
- Python
- Rust
- TypeScript
All other coding languages are not indexed or used in code customization. Torequest support for a coding language, clickSend feedback on this page,and then selectProduct feedback.
What's next
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-12-15 UTC.