This document describes how to get AI-powered assistance in the Gemini Code Assist chat in your integrated development environment (IDE).
Gemini Code Assist chat lets you write natural language statements or questions (called prompts) to get in-depth explanations of your code, suggested actions, or guided workflows that help you complete tasks quickly and efficiently without leaving the IDE.
Learn how Gemini Code Assist for individuals uses your data.Open Gemini Code Assist chat
To open Gemini Code Assist chat in the IDE:
VS Code
In the activity bar of your IDE, click spark Gemini Code Assist.
In the Gemini Code Assist chat, enter a prompt and then click send Send.
IntelliJ
In the Gemini Code Assist tool window, enter a prompt and then click Submit.
View query history
VS Code
Query history isn't available for VS Code.
IntelliJ
If you want to re-use your previous prompts, you can find them in your Query History in the Gemini Code Assist tool window by clicking schedule Show Query History.
Clear chat history
Gemini Code Assist uses the chat history for additional context when responding to your prompts. If your chat history is no longer relevant to what you're trying to achieve, you can clear the chat history:
VS Code
In the Gemini Code Assist pane, click history Resume Previous Chat.
When the previous chats appear in the Select chat menu, hold your pointer over the chat that you want to clear, and select Delete.
When prompted to confirm the deletion of the chat thread, select Delete.
IntelliJ
In the Gemini Code Assist tool window, click delete Clear Conversation History. This also clears your query history.