GitHub Copilot Completions and GitHub Copilot Chat in Visual Studio enable enhanced AI-assisted development in Visual Studio, helping you be more productive and efficient when writing code.
In this article, you learn how to install GitHub Copilot in Visual Studio. If you're using Visual Studio 2022 version 17.10 or later, you learn to use the Copilot badge in the IDE to manage your Copilot state.
Get GitHub Copilot for Visual Studio 2022 version 17.10 or later
With Visual Studio 2022 version 17.10, GitHub Copilot and GitHub Copilot Chat are available to install as a single experience that combines both Copilot and Copilot Chat into one package. The unified GitHub Copilot experience is included as a built-in, recommended component by default in all workloads and is available through the Visual Studio Installer.
Select at least one workload in the installer. Make sure to leave the preselected component GitHub Copilot selected.
OR
If no workload is selected, install GitHub Copilot by selecting it from Individual components in the installer.
GitHub Copilot is installed by default with all workloads. If you choose to exclude it, you can install it later by using the Visual Studio Installer to modify your installation, and selecting the GitHub Copilot component.
Get GitHub Copilot for Visual Studio 2022 versions 17.8 to 17.9
In Visual Studio 2022 versions 17.8 to 17.9, GitHub Copilot and GitHub Copilot Chat are available to install as two separate extensions.
Note
Installing GitHub Copilot extension is a prerequisite to installing GitHub Copilot Chat.
Install GitHub Copilot
You can get the GitHub Copilot extension in one of the following ways:
With Visual Studio 2022 version 17.10, you see a Copilot status icon in the upper-right corner of the Visual Studio environment that indicates if Copilot is active, inactive, unavailable, or not installed. Using the dropdown menu from the status icon, you can easily access options that help manage or troubleshoot your Copilot state. Some options are available or greyed out depending on your Copilot state.
Note
Note that the status icon is moving from the bottom panel of the Visual Studio editor.
Select Add GitHub Account with a Copilot Subscription in the dropdown from the status icon to open Account Settings and sign in with a GitHub account that has an active subscription to use Copilot. When you're signed in, the Copilot status icon updates to active.
If Copilot is inactive as the signed in GitHub account credentials need to be refreshed, select Refresh your GitHub credentials from the dropdown to refresh your GitHub account and sign in again.
If Copilot is installed but unavailable for use, it may be due to network connectivity issues, server-side technical problems, or an expired service plan. In this state, Copilot doesn't provide its usual services until the external issues are resolved.
Select Copilot is unreachable in the dropdown menu to open the Troubleshooting page on diagnosing and resolving common network errors with GitHub Copilot. When the issue is resolved and you're signed in with an active subscription, the Copilot status icon updates to active.
Copilot not installed
If you chose to opt out of the default recommended install by unchecking the GitHub Copilot component in the installer, the status icon is still available in the IDE.
Select Install Copilot from the dropdown to install Copilot.
If you choose to not install Copilot, you can select Hide Copilot from the dropdown to hide the Copilot status icon from the IDE.
Disable Copilot
Hide Copilot badge
You can hide the GitHub Copilot badge in the Visual Studio IDE by unselecting Tools > Options > Environment > Hide Copilot menu badge.
Uninstall Copilot
You can remove the GitHub Copilot component from your Visual Studio instance by using the Visual Studio Installer.
Launch the Visual Studio Installer by selecting Tools > Get Tools and Features.
Select Individual components.
Type "copilot" in the search box.
Uncheck GitHub Copilot and select Modify.
Restart Visual Studio, and select Hide Copilot from the Copilot status icon dropdown to hide the badge.
Next steps
To learn more, consider exploring the following resources:
This module introduces developers to the GitHub Copilot products, the benefits that GitHub Copilot provides to developers, the GitHub Copilot and GitHub Copilot Chat product features, and the GitHub Copilot extensions for Visual Studio Code.