Use Gemini Code Assist code customization

This document describes how to use Gemini Code Assist code customization and provides a few best practices. This feature lets you receive code recommendations, which draw from the internal libraries, private APIs, and the coding style of your organization.

Before you begin

  1. Set up Gemini Code Assist with an Enterprise subscription.

  2. Set up Gemini Code Assist code customization.

How to use code customization

The following table lists ways to use Gemini Code Assist code customization:

Form How to trigger Notes and resources

Natural language chat

Enter a natural language prompt in Gemini Code Assist chat in the IDE.

Consider the following:

  • Chat history is not available. Avoid multi-step queries.
  • You can ask for more details about sources, including links to the specific sources.
  • If you highlight or select code when you send a message in chat, Gemini Code Assist uses that code to improve code customization and chat quality.

For more information, see Chat with Gemini Code Assist.

Generate code In the quick pick bar in your IDE, either with or without selected code, press Command+Enter (on macOS) or Control+Enter. For more information, see Generate code with prompts.
Transform code In the quick pick bar in your IDE, either with or without selected code, enter /fix. For more information, see Generate code with prompts.