visual-studiovisual-studio-2022

How do I remove the Github pilot button from the Visual Studio 2022 UI?


How do I remove/hide the GitHub Copilot option (circled in red below) from the Visual Studio 2022 menu UI?

Screenshot of GitHub Copilot showing up on the Visual Studio menu bar

There's no option to hide or remove it when I click on the option, either:

Screenshot showing a lack of option to remove or hide the menu option

It's really wide and is messing up my custom layout. I don't use that feature and I don't need it.


Solution

  • From the Hiding Copilot Badge section of the Install GitHub Copilot in Visual Studio Microsoft Learn page:

    You can hide the GitHub Copilot badge in the Visual Studio IDE by unselecting Tools > Options > Environment > Hide Copilot menu badge.

    Screenshot of option to hide copilot badge in Tools > Options

    You may also find the Uninstall Copilot section useful, if you don't ever want to use it:

    You can remove the GitHub Copilot component from your Visual Studio instance by using the Visual Studio Installer.

    1. Launch the Visual Studio Installer by selecting Tools > Get Tools and Features.
    2. Select Individual components.
    3. Type "copilot" in the search box.
    4. Uncheck GitHub Copilot and select Modify.
    5. Restart Visual Studio, and select Hide Copilot from the Copilot status icon dropdown to hide the badge.