Sub topic 3
Install the GitHub Copilot extension
This chapter assumes you can open the Extensions view and the Command Palette in Visual Studio Code, and that you have checked your Copilot plan (covered earlier). Signing in comes in the next chapter. Here the goal is to get the extensions installed and confirm VS Code loaded them.
What you are installing
Copilot reaches VS Code through extensions published by GitHub:
- GitHub Copilot (
GitHub.copilot) provides inline suggestions in the editor. - GitHub Copilot Chat (
GitHub.copilot-chat) provides the Chat view, inline chat, and the Ask, Edit, and Agent modes.
Recent VS Code releases fold more of this into one experience, so you may see a single entry or a prompt to set up Copilot. Older or pinned versions show two separate extensions. In either case, install what the Extensions view offers from the publisher GitHub.
Install from the Extensions view
- Open the Extensions view with
Ctrl+Shift+X(Cmd+Shift+Xon macOS). - Search for
GitHub Copilot. - Check that the publisher is GitHub and that it has the verified badge. Lookalike extensions exist, so don't pick by name alone.
- Select Install. Repeat for GitHub Copilot Chat if it is listed separately.
Install from the command line
The code command installs extensions by ID. This is useful for scripts, dev-container setup, and checking what is already installed.
code --install-extension GitHub.copilot
code --install-extension GitHub.copilot-chat
code --list-extensions --show-versions | grep -i copilotThe last command lists installed extensions with their versions, filtered to Copilot. If code is not found, run Shell Command: Install 'code' command in PATH from the Command Palette on macOS. On Windows and Linux the command is normally added by the installer.
Skip that stub. The diagram follows.
Confirm the install worked
After installation, look for the Copilot icon in the status bar at the bottom right of the window, and for a Chat entry near the top of the window or in the Command Palette (search for Chat: Open Chat). Before you sign in, the icon usually shows a warning or sign-in state. That is expected. What matters is that the icon exists, which means VS Code loaded the extension.
Common installation errors
| Symptom | Likely cause | Fix |
|---|---|---|
| Install button is missing or fails with "not compatible" | VS Code is older than the extension requires | Update VS Code, then reload the window |
| Extension shows as installed but no icon appears | Extension is disabled, or the window was not reloaded | Enable it, then run **Developer: Reload Window** |
| Search returns many similar results | Third-party extensions with similar names | Install only the one published by GitHub |
| Extension is missing in a remote window | Extensions install per environment in WSL, SSH, and dev containers | Select **Install in WSL** (or the SSH or container equivalent) |
| Install blocked | Organization policy restricts extensions or the Marketplace | Ask your administrator to allow the GitHub publisher |
Keeping it current
Copilot extensions update often, and Chat features depend on a recent VS Code build. Leave automatic extension updates on, and update VS Code itself when the Extensions view reports an incompatibility.
Exercise
You installed Copilot in a WSL window on Windows. The Extensions view shows it, but no Copilot icon appears in the status bar of the WSL window. What are two things to check?
Show answer
First, check whether the extension is installed in the WSL environment. The Extensions view lists a local section and a WSL section, and the entry may be installed only locally, in which case select Install in WSL. Second, check that the extension is enabled and reload the window with Developer: Reload Window. You can also run code --list-extensions --show-versions from the WSL terminal to see what is installed there.