Sub topic 3
Install the GitHub Copilot extension
This chapter covers installing the Copilot extension in Visual Studio Code. It covers three install routes, how to verify the result, and how installs behave in remote and managed environments. It assumes you can open folders in VS Code, use the Extensions view and the Command Palette, and have a GitHub account. Signing in is the next chapter, so here you only need to get the extension installed and loaded.
What you are installing
Copilot reaches VS Code through extensions published by GitHub on the Visual Studio Marketplace. Two identifiers matter:
| Extension | ID | Provides |
|---|---|---|
| GitHub Copilot | `GitHub.copilot` | Inline suggestions, and in current releases the chat features as well |
| GitHub Copilot Chat | `GitHub.copilot-chat` | The Chat view, inline chat, and the Ask, Edit, and Agent modes |
Older VS Code versions needed both extensions, and the chat extension had to match your VS Code version closely. Newer releases are moving chat into the main Copilot extension, so you may see only one entry. Which one you see depends on your VS Code version and how the extension is rolled out to you. The steps below work in both cases. If the Marketplace page tells you to install a companion extension, install it too.
Extensions run inside VS Code and talk to GitHub's service over the network. Installing does not give you access by itself. The plan you checked in the previous chapter and the sign-in in the next chapter decide whether suggestions appear.
Before you install
Check these three things first. Most failed installs trace back to one of them.
- VS Code is current. Copilot Chat features depend on recent VS Code APIs. Open Help > Check for Updates (on macOS, Code > Check for Updates). If you install a Copilot version newer than your editor supports, the Marketplace or VS Code reports that the extension is incompatible with your version.
- You use the real VS Code build. Forks and repackaged builds such as VSCodium use a different extension registry (Open VSX). They may not offer the official Copilot extensions. Use Microsoft's VS Code build for this tutorial.
- You can reach the Marketplace. The Extensions view needs network access to
marketplace.visualstudio.com. On a locked-down network, installs fail before Copilot is involved.
Route 1: Install from the Extensions view
This is the most common route.
- Open the Extensions view with
Ctrl+Shift+X(Cmd+Shift+Xon macOS). - Search for
GitHub Copilot. - Choose the result whose publisher is GitHub, with the verified badge next to the publisher name.
- Select Install.
Many unrelated extensions have "Copilot" in their names, and some are third-party tools that imitate the branding. Check the publisher name and the install count before you click. The official extension has millions of installs.
After installation, a Copilot icon appears in the status bar at the bottom right of the window. A Chat entry may also appear in the title bar. If VS Code shows a "Set up Copilot" prompt, that is the sign-in flow, which the next chapter covers.
Route 2: Install from the command line
The code command-line launcher installs extensions without opening the UI. This is useful for scripted machine setup, onboarding documents, and CI images.
# Install the extension
code --install-extension GitHub.copilot
# Install the chat extension if your VS Code version needs it
code --install-extension GitHub.copilot-chat
# Confirm what is installed, with versions
code --list-extensions --show-versions | grep -i copilotThe code launcher must be on your PATH. On macOS, run Shell Command: Install 'code' command in PATH from the Command Palette once. On Windows and Linux the installer normally adds it.
The output of the last command looks like this:
[email protected]
[email protected]The version numbers change often, so do not expect to match these. What matters is that the IDs are present.
You can pin a version for reproducible setups by appending it to the ID, for example code --install-extension GitHub.copilot@<version>. Pinning has a cost. Copilot's service changes frequently, and an old extension version can lose features or stop working against the current backend. Pin only when a policy requires it.
Route 3: Recommend it to a whole team
If everyone working on a repository should be prompted to install Copilot, add a recommendation file. VS Code reads .vscode/extensions.json and shows a notification to anyone who lacks the listed extensions.
{
"recommendations": [
"GitHub.copilot",
"GitHub.copilot-chat"
]
}This only prompts. It does not install anything silently, and it does not grant anyone a Copilot license. Team members still need their own access, which comes from an individual plan or an organization seat.
What happens during an install
Installation unpacks files into your VS Code extensions folder (~/.vscode/extensions on Linux and macOS, %USERPROFILE%\.vscode\extensions on Windows). Activation is separate. VS Code loads the extension's code when an activation event fires, such as opening a file. A freshly installed extension can therefore need a window reload before it behaves normally. If the Extensions view shows a Reload Required or Restart Extensions button, select it.
Verify the install
Use more than one signal, because each one catches a different failure.
- Extensions view. Select the Copilot entry. It should show Disable and Uninstall buttons and no error banner. A Reload Required button means activation is pending.
- Status bar. The Copilot icon should be present. Selecting it opens a menu with status and settings. A crossed-out or warning-marked icon means the extension is loaded but not working yet, usually because you are not signed in.
- Command Palette. Type
GitHub Copilotinto the Command Palette (Ctrl+Shift+PorCmd+Shift+P). Copilot commands appearing proves the extension is registered. - Output panel. Open View > Output and choose GitHub Copilot (and GitHub Copilot Chat) from the dropdown. The log shows activation messages and any network or authentication errors. This is the first place to look when something is silently wrong.
Installs in remote and managed environments
VS Code can run its editing UI on one machine and its workspace on another. This affects where extensions live.
| Environment | Where Copilot runs | What to do |
|---|---|---|
| Local folder | Your machine | Install normally |
| WSL, SSH, or Dev Containers | The remote side | Install the extension in the remote window too |
| Codespaces | The codespace | Add it to the codespace configuration |
In a remote window, the Extensions view shows a separate Local and Remote section. An extension installed only locally may appear with an Install in WSL or Install in SSH button. Select it. Otherwise Copilot is missing exactly where your code lives.
For Dev Containers, list the extensions in the container configuration so every rebuild includes them:
{
"name": "my-project",
"image": "mcr.microsoft.com/devcontainers/typescript-node:20",
"customizations": {
"vscode": {
"extensions": [
"GitHub.copilot",
"GitHub.copilot-chat"
]
}
}
}If you use Settings Sync, installed extensions sync across your signed-in machines, so a new laptop picks up Copilot automatically. Your sign-in to Copilot itself is a separate step on each machine.
Some organizations restrict the Marketplace with an extension allow list or a managed policy. In that case, the install button is disabled or fails with a message about policy. Only an administrator can change this. Ask them to allow the GitHub.copilot extension, and do not try to work around it by side-loading a .vsix file. That bypasses the control the organization put in place deliberately.
Release channel: stable or pre-release
The extension's Marketplace page offers a Switch to Pre-Release Version button. Pre-release builds receive new features first and also receive bugs first. Use stable for daily work. Switch to pre-release only when you need a specific feature or a developer asks you to test a fix. Return to stable with Switch to Release Version.
Common install problems
| Symptom | Likely cause | Fix |
|---|---|---|
| Install button does nothing or spins | No Marketplace access | Check network and proxy, then retry |
| "Not compatible with this version of VS Code" | Outdated editor | Update VS Code, then reinstall |
| Install button is disabled | Organization policy | Ask your administrator |
| Extension installed but no icon | Pending activation | Select **Reload Required**, or run **Developer: Reload Window** |
| Copilot missing in a WSL or SSH window | Installed only locally | Install it in the remote window |
| Duplicate or odd behavior | Another AI extension conflicts | Disable the other extension and reload |
Network, proxy, and sign-in failures get a full treatment in the troubleshooting chapter. For now, the rule is that "extension installed" and "Copilot working" are different states. This chapter gets you to the first one.
Update, disable, and uninstall
Extensions update automatically by default, and Copilot updates often. You can turn off auto-update for one extension from its gear menu if you need a stable version for a demo or an audit.
Disable keeps the extension installed but inactive. You can disable it for the current workspace only. That is a quick way to turn Copilot off in one sensitive project without affecting the others. The Configure Copilot per language chapter covers finer-grained control. Uninstall removes the files, and you can reinstall at any time. Uninstalling does not delete your GitHub account or plan.
Exercise
A teammate's Dev Container shows no Copilot icon even though Copilot works in their local VS Code windows. Name the most likely cause and one durable fix.
Show answer
The extension is installed on the local side but not inside the container, where the workspace runs. The durable fix is to add "GitHub.copilot" (and "GitHub.copilot-chat" if their VS Code version needs it) to customizations.vscode.extensions in devcontainer.json, then rebuild the container. As a quick check, they can open the Extensions view in the container window and select the install button next to Copilot.
Exercise
You run code --list-extensions --show-versions | grep -i copilot and get no output, but you remember installing Copilot. Give two explanations to check.
Show answer
First, you may have installed it in a different VS Code profile, or on the remote side of a WSL, SSH, or container window, so the command you ran does not see it. Second, you may have installed an extension with a different name or a different publisher, or the install may have failed without you noticing. Open the Extensions view, search for GitHub Copilot, and confirm the publisher is GitHub and the entry shows Disable and Uninstall buttons.