In this categoryGemini ยท 24
- How to Install the Gemini CLI and Run Your First PromptStart
- How to Get a Gemini API Key from Google AI Studio
- How to Call the Gemini API from Python
- How to Give Gemini CLI Project Context with a GEMINI.md File
- How to Choose the Right Gemini Model for Coding Tasks
- How to Fix a Bug in Your Codebase with the Gemini CLI
- How to Set Up Gemini Code Assist in VS Code
- How to Stream Gemini Responses in Node.js
- How to Feed a Long Document into Gemini's Long Context
- How to Run the Gemini CLI Non-Interactively in Scripts
- How to Analyze a Video File with the Gemini API
- How to Connect an MCP Server to the Gemini CLI
- How to Fix Common Gemini CLI Authentication Errors
- How to Cache Long Context in the Gemini API to Cut Costs
- How to Summarize a YouTube Video with Gemini
- How to Analyze PDFs and Docs in the Gemini Chat App
- How to Extract Data from Images and Screenshots with Gemini
- How to Generate a Short Video with Veo in Gemini
- How to Ground Gemini Answers in Your Own Documents
- How to Use Gemini Inside Google Docs to Draft Faster
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
14:00
13:05
26:11
11:32
35:00
16:58New guides in your inbox
Fresh step-by-step how-to guides as we publish them. One email a week, no more.