How can I disable GitHub Copilot in VS Code?
Asked Answered
D

4

16

I looked on the GitHub website and it says to click on a git icon at the buttom of screen but I don't have that. Is there any other way to disable this annoying notification:

screenshot of the error popup

It says:

GitHub Copilot could not connect to server. Extension activation failed: "No access to GitHub Copilot found."

Daynadays answered 7/2, 2023 at 18:16 Comment(0)
D
11

Specific features for GitHub Copilot

See the official enable/disable docs. TL;DR there's a status bar indicator for GitHub Copilot in VS Code, and upon clicking it, you will be prompted to disable it globally or just for the specific language mode of your currently active editor tab (see the github.copilot.enable setting, which takes an object mapping language modes to booleans for whether Copilot should be enabled for editor tabs in the language mode).

There's also a command you can bind to a keyboard shortcut: github.copilot.toggleCopilot.

For excluding files from GitHub Copilot, see How to Exclude Specific Files (like .env) from GitHub Copilot in VS Code?.

You may also be interested in [Idea] AI actions should respect Copilot Completions language disablement #199379.

If you just want to disable automatically showing inline completions, then use the github.copilot.editor.enableAutoCompletions setting.

General disablement of VS Code extensions

To disable an extension, go to the extensions view. You can do that under the "View" menu at the top left, or click the icon at the left bar, or use the View: Show Extenstions command, or ctrl+shift+x (on Windows and Linux).

Here are pictures of the extension button icon that you can see in the left bar:
light/extensions.svg dark/extensions.svg

Then scroll until you find the Github Co-pilot extension, then click the gear icon at the bottom right of the extension card. Then, in the menu that pops up, click "Disable" or if you only want to disable it for the current workspace, "Disable (Workspace)".

Here are pictures of the gear button icon that you can see at the bottom right of the extension card:
light/gear.svg dark/gear.svg

Doty answered 7/2, 2023 at 18:22 Comment(2)
Much more difficult than paying for a Copilot subscription. Oh wait...Hypogeal
this does not work when using an override, for example for markdown files. they are disabled by default, but when you enable them, they act like overrides. that means you have no chance to toggle via keyboard, as the override takes precedence.Firman
D
1

ctrl+shift+p >enable copilot

Then you can see the icon in the low right crossed or not...

Duchess answered 14/3, 2024 at 16:7 Comment(0)
R
1

To disable it per workspace

create a folder called .vscode, if not already exist

create a file called settings.json, if not already exist

That json file should have this line -

github.copilot.editor.enableAutoCompletions set to false

like so,

{
    // other settings
    "github.copilot.editor.enableAutoCompletions": false,
    // other settings
}
Refinery answered 23/4, 2024 at 10:3 Comment(0)
A
-1

You can use the Visual Studio Installer to uninstall GitHub copilot.

  1. Open the installer, select modify, and then view the installation details on the right side of the window.
  2. Navigate down this list until you find GitHub copilot.
  3. Uncheck the option, select modify, and it will be uninstalled.

Note: The GitHub copilot icon still appears at the top right side of Visual Studio. You can now click on the icon and hide the GitHub copilot.

Alliaceous answered 4/6, 2024 at 13:46 Comment(0)

© 2022 - 2025 — McMap. All rights reserved.