Set up GitHub Copilot in VS Code (2025)

This guide walks you through setting up GitHub Copilot in Visual Studio Code. To use Copilot in VS Code, you need to have access to GitHub Copilot with your GitHub account.

Tip

If you don't yet have a Copilot subscription, you can use Copilot for free by signing up for the Copilot Free plan and get a monthly limit of completions and chat interactions.

Get access to GitHub Copilot

There are different ways to get access to GitHub Copilot:

Type of UserDescription
Individual
Organization/Enterprise member

Set up Copilot in VS Code

To use Copilot in VS Code, you need access to a GitHub Copilot subscription.

To set up Copilot in VS Code:

  1. Hover over the Copilot icon in the Status Bar and select Set up Copilot.

    Set up GitHub Copilot in VS Code (1)

  2. Select Sign in to sign in to your GitHub account or Use Copilot if you're already signed in.

    Set up GitHub Copilot in VS Code (2)

    If you don't have a Copilot subscription yet, you'll be signed up for the Copilot Free plan.

    Important

    Telemetry in your free version of GitHub Copilot is currently enabled. By default, code suggestions that match public code, including code references in the VS Code and <github.com> experience, are allowed. You can opt out of telemetry data collection by disabling telemetry in VS Code by setting telemetry.telemetryLevel to off, or you can adjust both telemetry and code suggestion settings in Copilot Settings.

  3. You can now start using Copilot in VS Code. Learn the basics with the Copilot Quickstart.

Use a different GitHub account with Copilot

If your Copilot subscription is associated with another GitHub account, sign out of your GitHub account in VS Code, and sign in with another account.

  1. Select the Accounts menu in the Activity Bar, and then select Sign out for the account you're currently signed in with for Copilot.

    Set up GitHub Copilot in VS Code (3)

  2. Sign in to your GitHub account using any of the following methods:

    • Select Sign in to use Copilot from the Copilot status menu.

      Set up GitHub Copilot in VS Code (4)

    • Select the Accounts menu in the Activity Bar, and then select Sign in with GitHub to use GitHub Copilot.

      Set up GitHub Copilot in VS Code (5)

    • Run the GitHub Copilot: Sign in command in the Command Palette (⇧⌘P (Windows, Linux Ctrl+Shift+P)).

Hide Copilot in VS Code

To completely hide Copilot in VS Code, select Hide Copilot from the Copilot menu in the VS Code title bar.

Set up GitHub Copilot in VS Code (6)

To reenable Copilot, run the Chat: Use AI Features with Copilot for Free command in the Command Palette (⇧⌘P (Windows, Linux Ctrl+Shift+P)).

Disable Copilot for a workspace

To disable Copilot for a specific workspace:

  1. Open the Extensions view in VS Code (⇧⌘X (Windows, Linux Ctrl+Shift+X)).
  2. Search for the GitHub Copilot extension.
  3. Select the gear icon and then select Disable (Workspace)

Set up GitHub Copilot in VS Code (7)

Next steps

  • Continue with the Copilot Quickstart to discover the key features of Copilot in VS Code.

06/12/2025

Set up GitHub Copilot in VS Code (2025)

References

Top Articles
Latest Posts
Recommended Articles
Article information

Author: Gregorio Kreiger

Last Updated:

Views: 6083

Rating: 4.7 / 5 (57 voted)

Reviews: 88% of readers found this page helpful

Author information

Name: Gregorio Kreiger

Birthday: 1994-12-18

Address: 89212 Tracey Ramp, Sunside, MT 08453-0951

Phone: +9014805370218

Job: Customer Designer

Hobby: Mountain biking, Orienteering, Hiking, Sewing, Backpacking, Mushroom hunting, Backpacking

Introduction: My name is Gregorio Kreiger, I am a tender, brainy, enthusiastic, combative, agreeable, gentle, gentle person who loves writing and wants to share my knowledge and understanding with you.