Join us for VS Code Live: Agent Mode Day on April 16th!
Dismiss this update
This article answers frequently asked questions about using GitHub Copilot in Visual Studio Code.
There are different ways to get access to GitHub Copilot:
Type of User | Description |
---|---|
Individual |
|
Organization/Enterprise member |
|
Your limit of code completions and chat interactions is reset every month, starting from the day you first signed up for the Copilot Free plan. If you reach your limit, you can opt to sign up for a paid subscription, and get an unlimited number of completions and chat messages. Alternatively, you can wait until the next month to continue using Copilot for free.
If only the chat interactions are reaching the limit, you can still use Copilot for code completions.
If only the code completions are reaching the limit, you can still use Copilot for chat interactions and Copilot Edits.
To use Copilot Chat in Visual Studio Code, you must be signed into Visual Studio Code with a GitHub ID that has access to GitHub Copilot. If your Copilot subscription is associated with another GitHub account, you might have to sign out of your GitHub account and sign in with another account. Use the Accounts menu in the Activity Bar for signing out of your current GitHub account.
Verify that your Copilot subscription is still active in GitHub Copilot settings.
To switch to another GitHub account for using Copilot:
Open the Extensions view from the Activity Bar ( or use ⇧⌘X (Windows, Linux Ctrl+Shift+X)) and enter GitHub Copilot in the search box.
There are two Copilot extensions: GitHub Copilot and GitHub Copilot Chat.
For the GitHub Copilot extension, select the gear icon, and then select Account Preferences.
From the Account Preferences Quick Pick, choose an existing account or select Use a new account... to sign in with a different GitHub account.
Repeat these steps for the GitHub Copilot Chat extension.
If you or your organization employs security measures like a firewall or proxy server, it may be beneficial to include certain domain URLs in an "allowlist" and open specific ports and protocols. Learn more about troubleshooting firewall settings for GitHub Copilot.
If you're working on company equipment and connecting to a corporate network, you may be connecting to the Internet via a VPN or an HTTP proxy server. In some cases, these types of network setups may prevent GitHub Copilot from connecting to GitHub's server. Learn more about troubleshooting network errors for GitHub Copilot.
If you would like to provide feedback on the Copilot features including inline suggestions and chat, you can create issues in the vscode-copilot-release repository.
It can be helpful to include information from the GitHub Copilot logs if you're reporting an issue.
The log files for the GitHub Copilot extension are stored in the standard log location for Visual Studio Code extensions. The log files are useful for diagnosing connection issues.
Use the Toggle Output command (⇧⌘U (Windows Ctrl+Shift+U, Linux Ctrl+K Ctrl+H)) and select GitHub Copilot or GitHub Copilot Chat in the dropdown.
Yes, you can switch to the pre-release (nightly) version of a Copilot extension to try the latest features and fixes. From the Extensions view, right-click or select the gear icon to bring up the context menu, and then select Switch to Pre-Release Version:
You can tell if you're running a pre-release version by the "Pre-release" badge in the extension details:
You can temporarily deactivate Copilot completions from the Status Bar. You're prompted whether you want to disable Copilot for all code (globally) or just the programming language detected in the active editor (for example, Python).
Check each requirement if Copilot Chat doesn't work:
If you receive a message that an extension is blocked from using Copilot Chat, the extension was likely disabled due to a detected pattern of abuse coming from that specific extension. Contact the publisher of the extension when you encounter this issue. You can find the publisher information on the extension details page in the Visual Studio Marketplace.