03-Set up GitHub Copilot in VS Code
03-Set up GitHub Copilot in VS Code
com/docs/copilot/setup
TOPICS Setup
(https://vscode.dev/github/microsoft/vscode-docs/blob/main/docs/copilot/setup.md)
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.
VS Code provides a streamlined experience to set up GitHub Copilot that takes you through the following
steps:
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.
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).
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.
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.
To manually set up GitHub Copilot in VS Code, you need to perform the following steps:
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 )
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
Copilot in VS Code.
• Check our Copilot cheat sheet (/docs/copilot/copilot-vscode-features) for an overview of the key
Copilot commands and shortcuts.
Yes No
02/06/2025
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)
(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)