Skip to content

Turn Off AI in VS Code

Recent versions of Visual Studio Code ship with AI features turned on by default. This includes Copilot chat, inline code suggestions (the grey “ghost text” that appears as you type), and the Copilot menu near the top of the window.

If your instructor asks you to work without AI assistance, this guide shows you how to switch all of it off.

VS Code has a single setting that hides and disables every built-in AI feature at once: chat.disableAIFeatures. Turning it on:

  • hides the Chat view and the Copilot menu in the title bar;
  • stops inline “ghost text” code suggestions;
  • disables the GitHub Copilot and Copilot Chat extensions.

Your choice is remembered, and it is kept when VS Code updates itself.

  1. Open the Settings screen.

    • Windows / Linux: press Ctrl + , (control key and comma)
    • macOS: press Cmd + ,

    You can also use the menu: File → Preferences → Settings.

  2. In the search box at the top, type:

    chat.disableAIFeatures
  3. Turn on the checkbox labelled “Chat: Disable AI Features”.

  4. Close the Settings tab. The change takes effect right away. If VS Code asks you to reload the window, allow it.

  1. Open the Command Palette.

    • Windows / Linux: press Ctrl + Shift + P
    • macOS: press Cmd + Shift + P
  2. Type hide AI and choose “Chat: Hide AI Features” from the list.

  3. Confirm when prompted. VS Code applies the change and may reload the window.

Turn it off everywhere, or just for one project

Section titled “Turn it off everywhere, or just for one project”

VS Code settings can be saved in two places, and you get to choose:

  • User settings apply to every folder you open in VS Code on this computer. This is the usual choice.
  • Workspace settings apply only to the one project folder you have open right now. VS Code saves these in a .vscode/settings.json file inside that folder.

When you use Option A above, the Settings screen has two tabs near the top: User and Workspace. Pick the tab you want before ticking the checkbox.

Optional: sign out of your GitHub / Copilot account

Section titled “Optional: sign out of your GitHub / Copilot account”

Disabling the AI features is enough to stop all suggestions. If you also want VS Code to forget which GitHub account it was using for Copilot:

  1. Click the Accounts icon (the person-shaped icon) at the bottom of the narrow Activity Bar on the far left of the window.

  2. Find the entry that mentions GitHub (it may say “GitHub” or list your username with “Copilot”).

  3. Click it and choose Sign Out.

If you have turned on Settings Sync (so your VS Code settings follow you between computers), the chat.disableAIFeatures setting will sync too. Disable AI on one machine and it will turn off on the others the next time they sync.

After applying the setting, confirm all of the following:

  • There is no Copilot menu in the title bar at the top of the window.
  • Opening a code file and typing does not produce grey “ghost text” suggestions.
  • The Chat view is gone. Pressing Ctrl + Alt + I (macOS: Cmd + Alt + I) does nothing, or the command is missing from the Command Palette.
  1. Open Settings with Ctrl + , (macOS: Cmd + ,).

  2. Search for chat.disableAIFeatures.

  3. Turn the “Chat: Disable AI Features” checkbox off. Make sure you are on the same tab (User or Workspace) where you turned it on.

  4. Reload the window if VS Code asks. The AI features come back.