Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Penyesuaian kode, fitur di
Gemini Code Assist Enterprise,
memungkinkan Anda mendapatkan saran kode dari Gemini Code Assist
Enterprise yang didasarkan pada repositori pribadi organisasi Anda, sehingga
sesuai dengan gaya coding organisasi Anda.
Dengan penyesuaian kode, developer dapat menggunakan konteks jarak jauh dari organisasi Anda langsung di IDE, seperti yang ditunjukkan dalam diagram berikut:
Saat Anda membuat kode, Gemini Code Assist akan menelusuri indeks pribadi Anda untuk menemukan kode yang mirip dengan yang sedang Anda tulis. Kemudian, alat ini menyertakan kecocokan yang relevan dalam perintah kode dan mengirimkan kecocokan ini ke layanan rekomendasi Gemini Code Assist. Penyesuaian kode
membuat rekomendasi tetap relevan dengan mengindeks ulang codebase Anda setiap 24 jam untuk
memastikan saran kode tetap terbaru.
Gemini Code Assist akan menampilkan kode yang dihasilkan kepada Anda.
Tidak seperti fitur kejelasan codebase penuh, yang terbatas pada penelusuran file
di folder saat ini dan tab yang terbuka di IDE Anda, penyesuaian kode menelusuri semua
repositori dalam indeks Anda. Setelah penyesuaian kode disiapkan, fitur ini akan berfungsi sebagai bagian dari fitur penyelesaian kode dan pembuatan kode.
Gemini Code Assist dan penyesuaian kode adalah layanan terkelola. Anda melisensikan penggunaan berdasarkan jumlah kursi per bulan.
Mengamankan akses dan penyimpanan kode pribadi
Google menyediakan keamanan kode pribadi tersimpan Anda dengan beberapa cara:
Kami mengindeks dan menyimpan kode Anda di lingkungan tenant tunggal khusus.
Kontrol akses administratif
membantu mencegah karyawan Google mengakses konten Anda tanpa justifikasi
dan, secara opsional, persetujuan eksplisit.
Model Gemini tidak dilatih dengan kode sumber pribadi Anda.
Hasil Anda bersifat pribadi, dan kami tidak membagikan hasil Anda kepada pelanggan lain.
Untuk mengetahui detail lebih lanjut tentang langkah-langkah keamanan Google, lihat
Ringkasan keamanan Google.
Berikut cara Anda dapat mengontrol akses ke data Anda:
Anda dapat menggunakan izin Identity and Access Management (IAM) untuk membantu mengontrol individu yang dapat memperoleh saran kode dari codebase Anda.
Anda dapat
membuat file .aiexclude
untuk memilih repositori tertentu atau bagian repositori yang diindeks oleh
Gemini Code Assist.
Google membatasi jumlah indeks repositori kode menjadi satu untuk setiap project
dan untuk setiap organisasi.
Jumlah maksimum repositori yang dapat diindeks adalah 20.000.
Jumlah maksimum grup repositori per indeks repositori kode adalah 500.
Jumlah maksimum repositori per grup repositori adalah 500.
Penyesuaian kode didukung di ekstensi Gemini Code Assist VS Code (versi 2.18.0+), plugin Gemini Code Assist IntelliJ (versi 1.1.0), Cloud Workstations, dan Cloud Shell Editor.
Penyesuaian kode mendukung repositori yang dihosting di github.com, gitlab.com,
bitbucket.org, dan repositori lokal yang dihosting di GitLab Enterprise, GitHub
Enterprise, dan Bitbucket Data Center.
Penyesuaian kode hanya mendukung koneksi Developer Connect
di lokasi (region) berikut:
us-central1
europe-west1
asia-southeast1
Penyesuaian kode tidak mengindeks media. Penyesuaian kode hanya mendukung dokumentasi (dalam Markdown) dan bahasa berikut:
C, C++, dan C#
Golang
Java
JavaScript
Kotlin
PHP
Python
Karat
TypeScript
Semua bahasa coding lainnya tidak diindeks atau digunakan dalam penyesuaian kode. Untuk
meminta dukungan untuk bahasa coding, klik Kirim masukan di halaman ini,
lalu pilih Masukan produk.
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Sulit dipahami","hardToUnderstand","thumb-down"],["Informasi atau kode contoh salah","incorrectInformationOrSampleCode","thumb-down"],["Informasi/contoh yang saya butuhkan tidak ada","missingTheInformationSamplesINeed","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 2025-09-04 UTC."],[[["\u003cp\u003eCode customization in Gemini Code Assist enables code suggestions based on an organization's private repositories and coding style, by indexing and analyzing the code within.\u003c/p\u003e\n"],["\u003cp\u003eGemini Code Assist reindexes the codebase every 24 hours to keep code suggestions current, and searches all repositories in the index, unlike the full codebase awareness feature.\u003c/p\u003e\n"],["\u003cp\u003eGoogle ensures the security of stored private code through a dedicated single-tenant environment, administrative access controls, and guarantees that the Gemini model doesn't train on private source code.\u003c/p\u003e\n"],["\u003cp\u003eAccess to code data can be controlled through Identity and Access Management (IAM) permissions and by using an \u003ccode\u003e.aiexclude\u003c/code\u003e file to specify which repositories or parts of repositories are indexed.\u003c/p\u003e\n"],["\u003cp\u003eCode Customization supports specific platforms and languages, while having limitations such as single repository index, maximum number of repositories and other configurations.\u003c/p\u003e\n"]]],[],null,["# Code customization overview\n\n| **Note:** Gemini Code Assist code customization is available only in Gemini Code Assist Enterprise. For more information, see [Gemini Code Assist supported features](/gemini/docs/codeassist/overview#supported-features).\n\nCode customization, a feature in\n\n[Gemini Code Assist](/gemini/docs/codeassist/overview) Enterprise,\nlets you get code suggestions from Gemini Code Assist\nEnterprise that are based on your organization's private repositories, and thus\naligned to your organization's coding style.\n\nWith code customization, developers can use remote context from your\norganization directly in the IDE, as the following diagram shows:\n\nAs you code, Gemini Code Assist searches your private index for\ncode that is similar to what you're trying to write. It then includes relevant\nmatches in the code prompt and sends these matches to the\nGemini Code Assist recommendations service. Code customization\nkeeps recommendations fresh by reindexing your codebase every 24 hours to\nensure that code suggestions remain up to date.\nGemini Code Assist returns the generated code to you.\n\nUnlike the full codebase awareness feature, which is limited to searching files\nin the current folder and open tabs in your IDE, code customization searches all\nrepositories in your index. After code customization is set up, it works as part\nof the code completion and code generation features.\n\nBoth Gemini Code Assist and code customization are managed\nservices. You license usage by seats per month.\n\nSecuring access and storage of private code\n-------------------------------------------\n\nGoogle provides security of your stored private code in several ways:\n\n- We index and store your code in a dedicated single-tenant environment.\n- [Administrative access controls](https://cloud.google.com/assured-workloads/cloud-provider-access-management/docs/administrative-access) help prevent Google employees from accessing your content without justification and, optionally, explicit approval.\n- The Gemini model doesn't train on your private source code.\n- Your results are private to you, and we don't share your results with other customers.\n\nFor further details on Google's security measures, see the\n[Google security overview](https://cloud.google.com/security/overview/whitepaper).\n\nHere's how you can control access to your data:\n\n- You can use Identity and Access Management (IAM) permissions to help control individuals who can get code suggestions from your codebase.\n- You can [create an `.aiexclude` file](/gemini/docs/codeassist/code-customization#optional_choose_which_files_are_not_indexed) to choose specific repositories or parts of repositories that Gemini Code Assist indexes.\n\nTo configure code customization in your IDE, see\n\n[Configure Gemini Code Assist code customization](/gemini/docs/codeassist/code-customization).\n\n\nLimitations\n-----------\n\n- Google limits the number of code repository indexes to one for each project and for each organization.\n- The maximum number of repositories that can be indexed is 20,000.\n- The maximum number of repository groups per code repository index is 500.\n- The maximum number of repositories per repository group is 500.\n- Code customization is supported in the VS Code Gemini Code Assist extension (version 2.18.0+), the IntelliJ Gemini Code Assist plugin (version 1.1.0), Cloud Workstations, and the Cloud Shell Editor.\n- Code customization supports repositories hosted on github.com, gitlab.com, bitbucket.org, and on-premises repositories hosted on GitLab Enterprise, GitHub Enterprise, and Bitbucket Data Center.\n- Code customization doesn't support [GitHub Enterprise Cloud IP restrictions](https://docs.github.com/en/enterprise-cloud@latest/organizations/keeping-your-organization-secure/managing-security-settings-for-your-organization/managing-allowed-ip-addresses-for-your-organization).\n- Code customization supports only Developer Connect connections in the following locations (regions):\n - `us-central1`\n - `europe-west1`\n - `asia-southeast1`\n- Code customization doesn't index media. Code customization supports only\n documentation (in Markdown) and the following languages:\n\n - C, C++, and C#\n - Golang\n - Java\n - JavaScript\n - Kotlin\n - PHP\n - Python\n - Rust\n - TypeScript\n\n All other coding languages are not indexed or used in code customization. To\n request support for a coding language, click **Send feedback** on this page,\n and then select **Product feedback**.\n\nWhat's next\n-----------\n\n1. [Configure Gemini Code Assist\n code customization](/gemini/docs/codeassist/code-customization).\n\n2. Once you've configured code customization in your IDE, see\n\n [Use code customization](/gemini/docs/codeassist/use-code-customization)."]]