How to Set Up an AI Assistant in VS Code
Install an AI coding extension in VS Code, sign in, and tune the settings that make inline suggestions actually helpful.
An AI coding extension turns VS Code into a pair-programmer that suggests lines and answers questions in the editor. The defaults are fine, but a few setting changes make the difference between helpful and annoying. This guide installs one and tunes it.
What you need
- VS Code installed
- An account for the AI assistant you plan to use
- About 8 minutes
Step 1: Install the extension
Open the Extensions panel, search for your assistant, and install the official build from a verified publisher. Avoid look-alike clones.
Step 2: Sign in
After installing, run the sign-in command from the palette. It opens a browser to authenticate and links the editor to your account.
> AI Assistant: Sign InStep 3: Tune suggestion behavior
Open settings and adjust how aggressive inline completions are. Turning off suggestions inside comments and strings keeps them out of the way when you are just writing prose.
{
"aiAssistant.inlineSuggest.enable": true,
"aiAssistant.suggest.inComments": false,
"aiAssistant.suggest.inStrings": false
}Step 4: Learn the accept keys
Practice accepting a full suggestion versus a single word so you take only what you want. Knowing the shortcuts is what makes the assistant feel fast rather than pushy.
Result: VS Code now offers in-editor AI help tuned to stay out of your way until you want it, with the accept keys in your fingers.
Watch related tutorials
13:05
14:00
9:47
6:41
12:38
12:00