GitHub Copilot works in VS Code after you install the extension, sign in, choose a plan or trial, and allow chat access.
Copilot in Visual Studio Code can feel confusing because the button, sign-in flow, plan screen, and chat panel all live in different places. The clean way to turn it on is to start inside VS Code, connect the right GitHub account, then test both inline suggestions and chat before you begin real work.
This article gives you the exact setup flow, plus the checks that fix the usual dead ends: no Copilot icon, a browser sign-in loop, the wrong GitHub account, or suggestions that never appear in the editor.
Before You Turn Copilot On
Start with a few checks so you don’t chase the wrong problem. Copilot needs a GitHub account, a working internet connection, and a current build of Visual Studio Code. If you use a work laptop, your company may control sign-in, model access, extensions, or chat settings.
Open VS Code and update it if an update banner appears. Then open a normal project folder, not a blank window. Copilot works better when the editor can read filenames, nearby code, and the language mode of the file you’re editing.
- Use the GitHub account that owns your Copilot plan or trial.
- Turn off any VPN rule that blocks GitHub or Visual Studio Marketplace requests.
- Make sure the Extensions view is allowed on your machine.
- Pick a real code file for the first test, such as JavaScript, Python, TypeScript, Java, or Go.
Activating Copilot In VS Code With The Right Account
The official VS Code Copilot setup steps start from the Copilot icon in the Status Bar. Hover over that icon, choose Use AI Features, then follow the GitHub sign-in prompts in your browser. After you approve access, return to VS Code and wait for the account badge to settle.
If you don’t already have paid access, VS Code may send you to a free plan or plan selection screen. GitHub lists current plan rules on its GitHub Copilot plans page, so check that page if pricing, limits, or sign-up choices don’t match older screenshots.
Step-By-Step Activation
- Open VS Code and sign out of any GitHub account you don’t want to use.
- Click the Copilot icon in the Status Bar, or open the Command Palette and search for Copilot.
- Select Use AI Features or Sign In To Use Copilot.
- Choose GitHub.com, or choose your GitHub Enterprise option if your plan is tied to a company account.
- Approve the browser authorization request.
- Return to VS Code and allow any extension install prompt.
- Open a code file and type a comment that describes a small function.
- Press Tab to accept an inline suggestion, or open Chat and ask for a small edit.
That last test matters. Activation is not just a sign-in badge. You want proof that inline completions and Copilot Chat both respond inside the editor you actually use.
What Each Copilot Area Does After Activation
Once Copilot is active, VS Code gives you more than one entry point. Some people only want gray inline suggestions. Others want chat, edits across files, commit message help, or terminal help. Knowing which part failed makes fixes much easier.
| Area In VS Code | What It Does | What To Check |
|---|---|---|
| Status Bar Icon | Shows whether Copilot is signed in, idle, limited, or blocked. | Click it to switch account, turn features on, or read error text. |
| Inline Suggestions | Places gray code completions inside the editor as you type. | Open a code file and confirm the language mode is correct. |
| Chat View | Lets you ask for edits, explanations, tests, and file changes. | Open the Chat icon or Command Center, then send a small request. |
| Inline Chat | Edits selected code inside the current file. | Select a function, press the inline chat shortcut, and ask for a change. |
| Extensions View | Shows whether GitHub Copilot and related chat pieces are installed. | Search GitHub Copilot and confirm it is enabled. |
| Accounts Menu | Controls which GitHub account VS Code is using. | Remove the wrong account when personal and work accounts collide. |
| Settings | Controls inline suggestions, chat behavior, agents, and language rules. | Search Copilot in Settings before reinstalling anything. |
| Output Panel | Shows extension logs when sign-in or network calls fail. | Open Output, choose GitHub Copilot, and read the newest message. |
Fixes When Copilot Does Not Turn On
If the Copilot icon is missing, open the Extensions view and search for GitHub Copilot. Install it from the verified publisher, then reload VS Code. If it says disabled, enable it for the current profile and workspace.
If the browser sign-in finishes but VS Code never changes, close the browser tab, return to VS Code, and check the Accounts menu. A stale account token can block the flow. Sign out, reload VS Code, and sign in again with the account that owns the plan.
If chat appears but code suggestions do not, the issue is often a setting, file type, or workspace rule. The official VS Code Copilot settings page lists the switches for inline suggestions, chat, agents, and language-level enablement.
| Symptom | Likely Cause | Fix |
|---|---|---|
| No Copilot icon | Extension missing or disabled | Install or enable GitHub Copilot, then reload VS Code. |
| Sign-in repeats | Wrong account or stale token | Sign out from Accounts, reload, then sign in again. |
| Chat works, no gray text | Inline suggestions are off | Search Settings for inline suggestions and Copilot language rules. |
| Works in one folder only | Profile or workspace setting differs | Compare User Settings and Workspace Settings. |
| Blocked on work device | Company policy or network filtering | Ask your admin for the allowed GitHub and VS Code settings. |
Settings Worth Checking After Activation
After Copilot answers once, spend two minutes tuning it. Open Settings and search for Copilot. Confirm inline suggestions are allowed for the languages you write. Many setups keep Copilot off for plaintext, Markdown, or source control input, which is normal.
Make The First Coding Test Clear
Use a tiny task, not a full feature request. Open a file and type a plain comment such as “create a function that converts Celsius to Fahrenheit.” Pause for a suggestion. If gray code appears, press Tab. If you dislike it, press Esc and keep typing.
Then open Chat and ask it to explain the function you accepted. This confirms that the editor, account, extension, and chat panel are all working together.
Privacy And Work Account Checks
Copilot can read the open file, selected text, and nearby project context when you ask for help. Treat it like any tool that sends prompts to a service. Don’t paste secrets, customer data, access tokens, or unreleased contract text into chat.
For company accounts, your admin may set policy for public code matches, telemetry, agents, model choices, and extra tools. If a setting says it is managed by your organization, local changes won’t stick. Use your company’s approved account instead of trying random sign-in combinations.
Last Checks Before You Start Coding
Once activation works, keep the setup simple. Pin the Chat view if you use it often. Leave the Status Bar icon visible. Don’t install lookalike extensions with similar names unless you know the publisher and purpose.
- Use one GitHub account per VS Code profile when possible.
- Test Copilot in a real code file after every account switch.
- Read the Status Bar error text before reinstalling.
- Keep VS Code updated so chat and inline features stay in sync.
If you can sign in, see the Copilot icon, get a gray inline suggestion, and send a chat request, activation is done. The rest is workflow: write a clear prompt, review every edit, run tests, and keep control of what lands in your project.
References & Sources
- Visual Studio Code.“Set Up GitHub Copilot In VS Code.”Shows the VS Code sign-in flow, Status Bar entry point, account choices, and extension setup behavior.
- GitHub Docs.“Plans For GitHub Copilot.”Lists current Copilot plan choices, access levels, and usage limits for individual and paid plans.
- Visual Studio Code.“GitHub Copilot In VS Code Settings Reference.”Lists Copilot settings for inline suggestions, chat, agents, languages, and workspace behavior.
