0% found this document useful (0 votes)
36 views

03-Set up GitHub Copilot in VS Code

This document provides a step-by-step guide for setting up GitHub Copilot in Visual Studio Code, including how to access Copilot through a free or paid subscription. It outlines the installation of necessary extensions, signing in with a GitHub account, and exploring AI-powered coding features. Additionally, it offers instructions for manual setup and switching accounts if needed.

Uploaded by

nicobar14
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
36 views

03-Set up GitHub Copilot in VS Code

This document provides a step-by-step guide for setting up GitHub Copilot in Visual Studio Code, including how to access Copilot through a free or paid subscription. It outlines the installation of necessary extensions, signing in with a GitHub account, and exploring AI-powered coding features. Additionally, it offers instructions for manual setup and switching accounts if needed.

Uploaded by

nicobar14
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 7

Set up GitHub Copilot in VS Code https://code.visualstudio.

com/docs/copilot/setup

🚀 Get GitHub Copilot Free (vscode://github.copilot-chat?referrer=vscode-updatebanner) in VS


Code!
×

TOPICS Setup

IN THIS ARTICLE Get access to GitHub Copilot

(https://vscode.dev/github/microsoft/vscode-docs/blob/main/docs/copilot/setup.md)

Set up GitHub Copilot in VS Code


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 and have the Copilot extensions
installed in VS Code.

Tip
If you don't yet have a Copilot subscription, you can use Copilot for free by signing up for the Copilot
Free plan (https://github.com/github-copilot/signup) 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 User Description

Individual • Set up GitHub Copilot Free (https://github.com/github-copilot/signup) to get a


limited experience of Copilot without a subscription. See About GitHub Copilot
Free (https://docs.github.com/en/copilot/managing-copilot/managing-copilot-as-
an-individual-subscriber/about-github-copilot-free).
• Sign up for a paid GitHub Copilot subscription to get unlimited completions and
chat interactions. You can try GitHub Copilot for free (https://github.com/github-
copilot/signup?
ref_cta=Copilot+trial&ref_loc=about+github+copilot&ref_page=docs) with a one-
time 30-day trial.
• See Setting up GitHub Copilot for yourself (https://docs.github.com/en/copilot/
setting-up-github-copilot/setting-up-github-copilot-for-yourself) for all options.

1 sur 7 19/02/2025 20:43


Set up GitHub Copilot in VS Code https://code.visualstudio.com/docs/copilot/setup

Type of User Description

Organization/ • If you are a member of an organization or enterprise that has a subscription to


Enterprise GitHub Copilot, you can request access to Copilot by going to https://
member github.com/settings/copilot (https://github.com/settings/copilot) and requesting
access under "Get Copilot from an organization."
• See Setting up GitHub Copilot for your organization (https://docs.github.com/en/
copilot/setting-up-github-copilot/setting-up-github-copilot-for-your-
organization) to enable Copilot for your organization.

Set up Copilot in VS Code

VS Code provides a streamlined experience to set up GitHub Copilot that takes you through the following
steps:

• Installs the GitHub Copilot extensions in VS Code


• Signs in to your GitHub account
• If you don't have a Copilot subscription yet, signs you up for the Copilot Free plan (https://
github.com/github-copilot/signup)

1 Open the Copilot menu in the VS Code title bar and select Use AI Features with Copilot for Free...
to open the Chat view

Tip
You can also open the Chat view directly by using the keyboard shortcut ⌃⌘I or with the Chat:
Focus on Chat View command.

2 Select Sign in to Use Copilot for free to sign in to your GitHub account. This step also installs the
Copilot extensions.

2 sur 7 19/02/2025 20:43


Set up GitHub Copilot in VS Code https://code.visualstudio.com/docs/copilot/setup

If you already have a Copilot subscription, you can now start using Copilot in VS Code.

3 If you don't yet have a Copilot subscription, follow the steps in the browser to sign 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
! (vscode://settings/telemetry.telemetryLevel)telemetry.telemetryLevel to off , or you can
adjust both telemetry and code suggestion settings in Copilot Settings (https://github.com/
settings/copilot).

Get started with Copilot in VS Code

After you've signed in to your GitHub account and have access to Copilot, start to explore AI-powered
coding in VS Code.

1 Verify that the Chat view ( ⌃⌘I ) shows, and that you can enter a prompt in the chat input box.

3 sur 7 19/02/2025 20:43


Set up GitHub Copilot in VS Code https://code.visualstudio.com/docs/copilot/setup

Notice that you can choose from multiple language models to use with Copilot.

2 Continue with the Copilot Quickstart (/docs/copilot/getting-started) to discover the key features of
Copilot in VS Code.

Manually set up GitHub Copilot in VS Code

To manually set up GitHub Copilot in VS Code, you need to perform the following steps:

• Install the GitHub Copilot extensions in VS Code


• Sign in to Copilot

Install the GitHub Copilot extensions


To manually install the GitHub Copilot extensions:

Install the GitHub Copilot extensions (vscode:extension/GitHub.copilot?


referrer=docs-copilot-setup)

You can also open the Extensions view and search for GitHub Copilot to install the extension.

Note
When you install the GitHub Copilot extension, the GitHub Copilot Chat (https://
marketplace.visualstudio.com/items?itemName=GitHub.copilot-chat) extension is also installed.

Sign in to Copilot
Sign in to your GitHub account by entering GitHub Copilot: Sign in in the Command Palette ( ⇧⌘P )

4 sur 7 19/02/2025 20:43


Set up GitHub Copilot in VS Code https://code.visualstudio.com/docs/copilot/setup

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.

2 Sign in to your GitHub account by entering GitHub Copilot: Sign in in the Command Palette ( ⇧⌘P )

Alternatively, sign in to GitHub in VS Code by selecting the Accounts menu in the Activity Bar, and
then Sign in with GitHub to use GitHub Copilot.

Next steps

• Continue with the Copilot Quickstart (/docs/copilot/getting-started) to discover the key features of

5 sur 7 19/02/2025 20:43


Set up GitHub Copilot in VS Code https://code.visualstudio.com/docs/copilot/setup

Copilot in VS Code.

• Check our Copilot cheat sheet (/docs/copilot/copilot-vscode-features) for an overview of the key
Copilot commands and shortcuts.

Was this documentation helpful?

Yes No

02/06/2025

Subscribe(/feed.xml) Ask questions(https://stackoverflow.com/questions/tagged/vscode)

Follow @code(https://go.microsoft.com/fwlink/?LinkID=533687)

Request features(https://go.microsoft.com/fwlink/?LinkID=533482)

Report issues(https://www.github.com/Microsoft/vscode/issues)

Watch videos(https://www.youtube.com/channel/UCs5Y5_7XK8HLDX0SLNwkd3w)

6 sur 7 19/02/2025 20:43


Set up GitHub Copilot in VS Code https://code.visualstudio.com/docs/copilot/setup

(https://
www.microsoft.com)

(https://go.microsoft.com/fwlink/?LinkID=533687)
(https://github.com/microsoft/vscode) (https://www.youtube.com/@code)

Support (https://support.serviceshub.microsoft.com/supportforbusiness/create?sapId=d66407ed-3967-
b000-4cfb-2c318cad363d)
Privacy (https://go.microsoft.com/fwlink/?LinkId=521839)
Terms of Use (https://www.microsoft.com/legal/terms-of-use) License (/License)

7 sur 7 19/02/2025 20:43

You might also like