Skip to content
▌beetlix/swarm
← All reviews

Visual Studio Code Copilot Setup Guide 2026

4.0/ 5
Arif AriyanReviewed by Arif Ariyan · Senior Software Engineer ·

This guide walks through installing GitHub Copilot in Visual Studio Code, signing in, and making your first agent-mode edit. It also covers the errors people most often hit and how to clear them. Figures and plan details are drawn from the vendor documentation and the official pricing page as of 2026. Where a number is not listed in those sources, this article does not give one.

What you need before you start

Copilot runs as an extension inside Visual Studio Code, so you need a working VS Code install first. Download the current stable release from code.visualstudio.com. The VS Code release notes for 2026 list the version numbers; use the latest stable build rather than an older one, because agent mode features have been added across recent releases. Check Help, then About, to confirm your version.

You also need a GitHub account. Copilot is licensed per GitHub account, not per editor, so the account you sign in with determines which plan applies. Agent mode is not available on every plan. The plan comparison on the GitHub pricing page lists which tier includes agent mode and the premium request allowance for each. Verify the tier you are on before assuming agent mode is included, since the tiers are revised from time to time.

Install and sign in

Open the Extensions panel with Ctrl+Shift+X on Windows and Linux, or Cmd+Shift+X on macOS. Search for GitHub Copilot, published by GitHub, and select Install. Install GitHub Copilot Chat as well if it is not bundled in your build. Both extensions are what provide the chat panel and the modes described later.

After installation, VS Code prompts you to sign in. Choose the sign-in option and your browser opens a GitHub authorization page. Approve the request, then return to VS Code. The browser tab typically shows a confirmation that you can close. If VS Code does not pick up the session, reload the window with Ctrl+Shift+P, then Developer: Reload Window.

Confirm the setup worked by looking at the status bar at the bottom of the window. The Copilot icon should appear there and show an active state rather than a warning or a crossed-out symbol. Hover over it for a tooltip. If the icon is missing entirely, the extension is probably disabled, which is covered in the errors section below.

Chat modes: ask, edit, agent

Copilot Chat offers three modes, and picking the right one saves time and avoids unwanted changes to your code. The vendor documentation describes each one. Select the mode from the dropdown in the chat input area.

Ask mode answers questions about your code without editing files. Use it to understand an unfamiliar function or to ask how a library is meant to be called. An example prompt: Explain what the retry loop in src/fetch.ts does and why it sleeps before the second attempt. Nothing in your project changes.

Edit mode proposes changes to specific files you point it at. You control the scope by adding files to the working set. An example prompt: In src/utils/date.ts, change formatDate to accept an optional locale argument defaulting to en-US. You review each proposed diff before accepting it.

Agent mode plans a multi-step task, decides which files to read and change, can run commands, and iterates on errors. Use it for work that spans several files or needs to be verified by running tests. An example prompt: Add input validation to the signup endpoint so empty emails return a 400, then run the existing test suite and fix any failures you introduced. Agent mode asks for confirmation before running terminal commands unless you have changed that setting. Review its plan before you let it run unattended.

A practical rule: start in ask mode to understand the code, move to edit mode for a targeted change, and reach for agent mode when the task needs the tool to discover what to change itself.

Choosing a model inside VS Code

The model picker sits in the chat panel, usually as a dropdown near the input box, and lists the models available on your plan. The set of models and which ones are included depends on your subscription, and GitHub updates it over time, so check the picker in your own installation rather than relying on a list copied elsewhere.

Model access is tied to your plan. Some models are included in the base allowance, while others draw from premium request usage. The GitHub documentation explains how premium requests are counted and what each plan allows. Heavier models consume premium requests faster, so a model that feels better for hard reasoning may run through your monthly allowance quicker than a default one. Check your remaining usage in your GitHub account settings before settling on a daily workflow that depends on a premium model.

The pricing snapshot used for this article lists per-million-token rates for several models from other providers, such as openai/gpt-4 at $30 input and $60 output per million tokens. Those are API rates for those models, not what Copilot charges you. Copilot's own cost model is the premium request allowance on your plan, so do not read the API table as a Copilot price list.

Instructions and context files

Copilot can read project-level instructions so that its suggestions follow your conventions. Create a file at .github/copilot-instructions.md in the root of your repository. Keep it short: Copilot reads it on every request, so long files add noise.

A useful file states the language and framework, the test command, and any rules that tools often get wrong. For example:

Use TypeScript strict mode. Run npm test before declaring a task done. Do not add new dependencies without asking. Dates are stored as ISO 8601 strings.

Write instructions as plain sentences or short bullets. Avoid pasting whole style guides; link to the relevant file instead and say when to read it. Revisit the file when your conventions change, because stale instructions cause more wrong output than missing ones.

Common errors and fixes

These are the failures that come up most often during setup. Error strings are shown as they appear in the interface or logs; exact wording can change between releases.

Sign-in loop. The browser keeps asking you to authorize and VS Code never shows you as signed in. Usually the cause is a stale session or a browser that blocks the callback. Sign out of GitHub in VS Code, close the authorization tab, reload the window, and sign in once more. If it persists, try a different browser or disable an extension that intercepts local redirects.

Extension disabled. The Copilot icon is missing from the status bar, or Extensions shows GitHub Copilot as disabled. Open Extensions, find the item, and select Enable. If VS Code shows that the extension is disabled for the workspace, enable it there too. Disabled extensions are often a side effect of a previous crash or of running with a restricted profile.

Proxy issues. Requests fail with network errors, often on corporate networks. Set the proxy in VS Code under Settings by searching for http.proxy, and turn on proxy support if your network requires it. Confirm that your network allows outbound connections to GitHub's Copilot endpoints; your administrator can confirm which hosts are permitted. Restart VS Code after changing proxy settings.

Model unavailable. The picker shows a model you expected but selecting it returns an error, or the model is missing. This usually means the model is not included in your plan or you have run through the allowance for premium requests. Check your plan and remaining usage, then pick a model that is available on your tier. If the model appears in the docs for your plan but is still unavailable, sign out and back in to refresh the list.

If none of these match, open the Output panel, choose GitHub Copilot from the dropdown, and read the most recent entries. Those logs carry the specific error and usually point to one of the causes above.

Copilot vs other VS Code AI extensions

Several extensions offer AI assistance inside VS Code, and two common alternatives are Cline and Continue. The most important difference is how each one is configured and billed. Copilot is tied to your GitHub subscription and uses GitHub's model access and premium request accounting. Cline and Continue are open-source tools that generally let you bring your own model provider and API key, so their cost depends on the provider you connect and its per-token rates. The pricing snapshot in this article shows how widely those rates vary across models, which is why the choice of provider matters.

Copilot is the simpler option if you already pay for GitHub and want a single account with the modes described above. Cline and Continue suit people who want to choose providers themselves or run models they control. Our reviews of each are linked below if you want a fuller comparison. Beetlix is our own product.

For the full picture on Copilot itself, see how to use GitHub Copilot and the GitHub Copilot guide. For plan details, read the GitHub Copilot plan comparison for 2026 and the notes on the GitHub Copilot free tier. To compare alternatives, see the Cline review for 2026 and the Continue review for 2026.

How this review was researched

This article is based on the GitHub Copilot and Visual Studio Code documentation, the VS Code release notes for 2026, the official GitHub pricing page, and the live AI model pricing data referenced above. No hands-on installation was performed for this write-up; steps describe the documented flow and may differ slightly in your version.

Who should set this up

If you already have a GitHub account and a paid or trial plan, setup takes a few minutes and the agent mode workflow is worth learning. If you are on a restricted corporate network, expect to spend more time on proxy and access settings than on the install itself. Either way, start in ask mode, add an instructions file once the repo has stable conventions, and move to agent mode only when a task truly spans files.

What works

  • Install and sign-in are short and the status bar gives a clear health check.
  • Three chat modes map cleanly to increasing levels of autonomy.
  • Project instructions file keeps output aligned with your conventions.
  • Model access is shown in the picker, so you can see what your plan includes.
  • Works inside the editor you already use with GitHub account billing.

What doesn't

  • Agent mode and premium model access depend on your plan, which can change.
  • Corporate proxies and network rules can block sign-in and requests.
  • Premium request accounting adds a usage limit to track alongside your work.

The verdict

Copilot in VS Code is quick to set up if your GitHub account and network allow it. Start with ask and edit modes to build trust, and use agent mode once you know which plan includes it.

FAQ

Is Copilot free in VS Code?
Copilot is licensed through a GitHub account and offers plan tiers. Check the GitHub pricing page for whether a free tier is currently available and what it includes, since tiers change.
Does Copilot work offline?
Copilot's chat and completion features send requests to GitHub's servers and need a network connection. Offline use is not described as supported in the documentation, so plan on needing internet access.
Why does agent mode not appear in my chat?
Agent mode depends on your plan and extension version. Confirm you are on a tier that includes it, update the GitHub Copilot extension, and check the chat mode dropdown again.