How to Set Up Gemini Code Assist in VS Code
Install the Gemini Code Assist extension, sign in, and get inline completions and chat inside VS Code.
Gemini Code Assist brings Gemini into VS Code as inline completions, a chat panel, and code actions. The individual tier is free with generous limits. This guide installs the extension, signs you in, and shows the two features you will use most.
What you need
- VS Code installed and up to date
- A Google account for the free individual tier
- An internet connection for sign-in
- About 6 minutes
Step 1: Install the extension
Open the Extensions view with the squares icon in the sidebar, search for Gemini Code Assist, and click Install on the entry published by Google. VS Code adds a Gemini icon to the activity bar when it finishes.
Step 2: Sign in with Google
Click the Gemini icon in the activity bar, then Sign in. VS Code opens a browser tab for Google consent. After you approve, the editor shows your account in the panel and completions become active.
Step 3: Use inline completions
Start typing in any code file. Suggestions appear as gray ghost text ahead of your cursor. Press Tab to accept the whole suggestion, or keep typing to ignore it. Write a descriptive comment first to steer the suggestion.
Step 4: Ask the chat panel
Open the Gemini chat panel and ask questions about the open file. You can select code first and reference it with the selection, which keeps answers grounded in your actual code rather than generic advice.
Result
You now have Gemini completing code as you type and answering questions in a side panel, without leaving VS Code. The comment-then-Tab habit and the selection-aware chat are the two workflows worth building muscle memory for.
Watch related tutorials
13:05
14:00
26:11
9:48
11:32
18:05