To set up GitHub Copilot in VS Code, hover over the Copilot icon in the Status Bar, select Use AI Features, and sign in with your GitHub account. If the account has no Copilot plan, VS Code enrolls it in Copilot Free when it is eligible.
This page covers the setup, how to accept suggestions, how to use chat, and what to check when Copilot stops responding. The details are from the VS Code and GitHub documentation as of November 2026. Copilot's plans, credits and menu labels change often, so treat the numbers as a snapshot.
How to set up GitHub Copilot in VS Code
- Update VS Code to the current version first (
Code: Check for Updatesin the Command Palette,Ctrl+Shift+Pon Windows and Linux,Shift+Cmd+Pon macOS). The VS Code FAQ lists this as the first fix for chat problems. - Hover over the Copilot icon in the Status Bar and select Use AI Features.
- Choose a sign-in method and follow the prompts in the browser. If your GitHub account has a Copilot subscription, VS Code uses it.
- Start using Copilot. Type code in an editor for inline suggestions, or use the Chat view.
If your employer provides Copilot, sign in with the account your organization gave you. For a GitHub Enterprise Cloud account on GHE.com, choose Continue with GHE.com in the sign-in dialog, then enter your instance URL.
See how to update VS Code if you are not sure which version you have.
Is GitHub Copilot free in VS Code?
Partly. Signing in without a plan enrolls an eligible account in Copilot Free, which includes a monthly allowance of inline suggestions and AI credits. Models you reach through Copilot use AI credits from your plan. GitHub's plans page gives these figures:
| Plan | Price | What the plans page says |
|---|---|---|
| Copilot Free | Free | Limited to 2000 completions per month |
| Copilot Pro | $10 USD/month | 1,000 base credits plus a 500-credit flex allotment, 1,500 AI credits in total |
| Copilot Pro+ | $39 USD/month | 3,900 base credits plus a 3,100-credit flex allotment, 7,000 AI credits in total |
Verified students can get Copilot Student for free. Verified teachers and maintainers of popular open source projects may be eligible for free Copilot Pro. To see how much of your allowance is left, open the Copilot status dashboard from the Status Bar.
How to accept inline suggestions
As you type, Copilot shows grey "ghost text" in the editor. These keys control it:
| Action | Windows and Linux | macOS |
|---|---|---|
| Accept the whole suggestion | Tab | Tab |
| Dismiss it | Esc | Esc |
| Accept one word | Ctrl+Right | Cmd+Right |
To accept one line, run Accept Next Line Of Inline Suggestion from the Command Palette.
VS Code can also suggest your next edit, not only the code at the cursor. This is controlled by github.copilot.nextEditSuggestions.enabled. With it on, Tab moves to the suggested edit, Tab again accepts it, and Esc dismisses it. The setting editor.inlineSuggest.edits.showCollapsed keeps suggested changes collapsed until you navigate to them.
How to turn inline suggestions off
- Status Bar: open the Copilot menu and uncheck inline suggestions.
- Snooze: in the same menu, Snooze pauses suggestions in five-minute increments. Cancel Snooze resumes them.
- Per language: the
github.copilot.enablesetting turns suggestions on or off by language. The*entry applies to all languages, so setting it tofalseturns them off everywhere. For example, insettings.json:
"github.copilot.enable": {
"*": true,
"markdown": false
}
To hide all built-in AI features, set chat.disableAIFeatures in your user or workspace settings.
How to use Copilot Chat
Chat lives in the Chat view, which works on your current workspace alongside the editor, terminal, tests and debugger. You can find it by searching for chat commands in the Command Palette. Three input features are worth knowing:
#mentions. Type#in the chat input to reference files, folders, symbols,#codebase,#terminalSelection, or tools such as#fetch.- Slash commands. Type
/to list the commands available. - Inline chat and Quick Chat. Inline chat edits code in place or suggests terminal commands. Quick Chat is a temporary conversation that does not keep you in the Chat view.
Chat also lets you pick a language model, including models from other providers, your own API key, or a supported local model. Check what is available in your plan before relying on a specific model.
Use a different GitHub account
Copilot uses whichever GitHub account holds the plan. To switch, open the Accounts menu in the Activity Bar and choose Sign out for the current account. Then sign in again through any of these:
- the Copilot status menu, Sign in to use Copilot
- the Accounts menu, Sign in with GitHub to use GitHub Copilot
- the Command Palette command GitHub Copilot: Sign in
To use a different GitHub.com account per workspace or profile, open the Accounts menu, select Manage Extension Account Preferences, choose GitHub Copilot Chat, and pick the account.
Copilot not working in VS Code
Suggestions do not appear
- Check that inline suggestions are not off globally or for the current language (Copilot status menu, or
github.copilot.enable). - Confirm the subscription is active and detected.
- Check your network settings.
- On Copilot Free, check whether you have reached the monthly inline suggestions limit.
- If all of that passes, read the GitHub Copilot logs.
Chat does not respond
Run Code: Check for Updates, then confirm you are signed in with the account that has the active plan. Inline suggestions and AI credits reset monthly, so one can run out while the other still works.
Rate limit message
The FAQ says this error means the service is temporarily limiting requests. It can happen even when your AI credits are not used up. Wait a few minutes and retry.
Sign-in picks the wrong account
Sign out of the wrong account from the Accounts menu, then sign in with the one that holds the plan. Also check in your GitHub Copilot settings that the subscription is still active.
Behind a proxy or VPN
Your firewall or proxy must allow the domains, ports and protocols Copilot needs. The VS Code FAQ points to GitHub's firewall and network error guides for the list. Certificate errors on a corporate VPN or HTTP proxy are a common sign of this.
Telemetry on Copilot Free
The setup page states that telemetry is enabled by default on the free plan. To opt out, set telemetry.telemetryLevel to off. For how Copilot handles your code, the VS Code FAQ refers to the GitHub Copilot Trust Center and VS Code's article on security considerations for AI. If you work for an organization, your administrator can manage AI settings and content exclusions through policies.
Frequently asked questions
- Is GitHub Copilot free in VS Code?
- There is a free plan. If you sign in without a Copilot plan, VS Code enrolls an eligible GitHub account in Copilot Free, which has a monthly allowance of inline suggestions and AI credits. GitHub's plans page lists 2000 completions per month for Copilot Free. Verified students can get Copilot Student for free, and verified teachers and maintainers of popular open source projects may be eligible for free Copilot Pro. Limits and prices change, so check the plans page.
- How do I turn GitHub Copilot off in VS Code?
- To pause inline suggestions, open the Copilot menu in the Status Bar and uncheck inline suggestions, or choose Snooze to pause them in five-minute steps. To change it per language, edit the github.copilot.enable setting. To hide all built-in AI features, set chat.disableAIFeatures in your user or workspace settings.
- Can I use a different GitHub account for Copilot in one workspace?
- Yes, for GitHub.com accounts. Open the Accounts menu in the Activity Bar, select Manage Extension Account Preferences, choose GitHub Copilot Chat, and pick the account for that workspace or profile.
- Does Copilot work without signing in?
- Not for inline suggestions. Per the VS Code FAQ, you can use a bring-your-own-key (BYOK) model in chat without GitHub sign-in, but inline suggestions, semantic search and embeddings still require the Copilot service. Core editor features need no account.