How To Enable GitHub Copilot In VS Code | AI Coding Companion

Enable GitHub Copilot in VS Code: install the extension, sign in with a Copilot-enabled account, then select Use AI Features in the Status Bar.

GitHub Copilot brings AI-powered code completions and chat assistance directly into Visual Studio Code, but the features don’t activate themselves. The entire process takes about two minutes and works identically on Windows, macOS, and Linux. Here is how to enable GitHub Copilot in VS Code and start writing code with AI suggestions that actually keep up with your workflow.

What Do You Need Before Enabling GitHub Copilot?

Copilot needs three things to work in VS Code. Missing any one of them stops the setup cold.

  • Visual Studio Code — any currently supported version works, but running the latest release avoids compatibility problems. Check for updates under Help > Check for Updates.
  • The GitHub Copilot extension — search for “GitHub Copilot” in the Extensions view (Ctrl+Shift+X) and install the one published by GitHub.
  • A GitHub account with active Copilot access — a personal account with a Copilot subscription or an enterprise account that includes Copilot. GitHub offers a free tier with limited completions and chat requests, alongside paid plans for higher usage.

An internet connection is also required during sign-in and for receiving completions. If your network routes through a corporate proxy, you may need to allow traffic to GitHub’s services.

Enable GitHub Copilot In VS Code: The Setup That Works

Once the extension is installed, enabling Copilot comes down to a sign-in step and one click in the Status Bar. Follow these steps in order.

  1. Open VS Code and look for the Copilot icon in the Status Bar — the bottom-right area of the window. The icon looks like a small chat bubble or the GitHub logo, depending on your version.
  2. Hover over the icon and select Use AI Features. If you don’t see this option, click the icon itself to reveal the menu.
  3. Choose a sign-in method. Sign in with GitHub is the standard route for personal accounts. Follow the browser prompts to authenticate and authorize the extension.
  4. After authentication completes, return to VS Code. The Copilot icon in the Status Bar should show a connected state — a filled icon rather than an outline.
  5. Open a code file in any supported language and start typing. Copilot will offer inline suggestions as you write. Press Tab to accept a suggestion.

If the sign-in prompt doesn’t appear, open the Command Palette (Ctrl+Shift+P or Cmd+Shift+P on Mac) and run GitHub Copilot: Sign in to trigger it manually. For the full official reference, see VS Code’s Copilot setup documentation.

How To Sign In With GitHub Enterprise (GHE.com)

Enterprise users follow a slightly different path. Standard GitHub.com authentication won’t work if your account lives on a GitHub Enterprise Server or GHE.com instance.

  • When the sign-in prompt appears, select Continue with GHE.com instead of the default GitHub.com option.
  • Enter the full URL of your enterprise instance and follow the browser-based authentication steps.
  • To make the enterprise provider stick across restarts, add this to your user or workspace settings.json:
    "github.copilot.advanced": {
      "authProvider": "github-enterprise"
    }
  • Save the file and sign in again. Copilot should now authenticate through your enterprise account.

To switch between accounts later, open the Accounts menu in the Activity Bar, sign out of the current account, then sign in with the correct one. Account preferences for the Copilot Chat extension are managed under Manage Extension Account Preferences.

Requirements For GitHub Copilot In VS Code

Requirement Details Notes
VS Code version Latest stable release recommended Check via Help > Check for Updates
Copilot extension Published by GitHub in the marketplace Search “GitHub Copilot” in Extensions view
GitHub account type Personal or enterprise (GHE.com) Must have active Copilot access
Copilot plan Free tier or paid subscription Free includes limited completions and chat
Internet connection Required for sign-in and completions Corporate proxies may need GitHub allowlisted
Status Bar indicator Copilot icon at bottom-right of window Shows connected or disconnected state
Organization access Enterprise accounts only Admin can disable features via policy

How Does Copilot Chat Work After Setup?

Once Copilot is enabled, the Chat view gives you a conversational interface for code questions, explanations, and refactoring tasks. It works alongside the inline completions, not instead of them.

  • Open the Chat view with Ctrl+Alt+i on Windows and Linux or Control+Command+i on Mac. The chat panel opens in a side pane or tab, depending on your layout.
  • Type a natural language prompt — “what does this function do,” “write a regex for email validation,” or “refactor this class to use async/await” — and press Enter.
  • Copilot Chat responds with code snippets and explanations. You can copy the code directly or use the insert buttons to place it in your editor.
  • For new projects, type /init in the chat session to let Copilot analyze your project structure and suggest an initial setup.

Chat requires the same GitHub account and Copilot access as inline completions. If the Chat view doesn’t respond, verify your subscription status in your GitHub account settings.

Common Problems When Enabling Copilot

Most setup failures come from one of a few recurring issues. Here is what to check when Copilot doesn’t activate or stops working.

Problem Likely Cause Fix
Copilot icon missing from Status Bar Extension not installed or disabled Reinstall GitHub Copilot from Extensions view
“No Copilot access” error Wrong GitHub account signed in Sign out via Accounts menu, sign in with the correct account
Inline suggestions won’t appear Completions disabled in Status Bar Click the Copilot icon and select Enable Completions
Chat view shows no response No active subscription on the signed-in account Check your Copilot plan status at github.com/settings/copilot
Features blocked without explanation Organization policy restricts agents or suggestions Contact your GitHub organization administrator
Sign-in fails behind a corporate network Firewall or proxy blocking GitHub services Allowlist github.com, api.github.com, and copilot.github.com

If none of these resolve the issue, check that both VS Code and the Copilot extensions are on their latest versions. Stale extensions are a common source of authentication and connection problems.

Verify Your Copilot Setup

Once you have signed in and enabled the features, confirm everything is working by putting Copilot through a short test.

  1. Open a new file in a language Copilot supports — JavaScript, Python, TypeScript, Go, and many others.
  2. Type a comment describing what you want, such as // function to sort an array of objects by a property. A suggestion should appear as gray text.
  3. Press Tab to accept it. The code should insert cleanly into your file.
  4. Open the Chat view with Ctrl+Alt+i and ask a question about the file. The chat should respond with an answer and relevant code.

When both inline completions and chat respond correctly, your Copilot setup is complete. You can adjust settings later through the Copilot icon in the Status Bar or by searching “Copilot” in VS Code’s settings editor.

References & Sources