# VS Code Copilot Not Working

GitHub Copilot's suggestions don't appear, or you see "Copilot not available" messages. The inline suggestions never show up, or Copilot chat fails to respond. Authentication prompts keep appearing, or your subscription seems unrecognized. Copilot is a powerful AI assistant, but when it stops working, you lose that productivity boost.

Understanding Copilot Components

GitHub Copilot involves:

  1. 1.GitHub Copilot extension (GitHub.copilot)
  2. 2.GitHub Copilot Chat extension (GitHub.copilot-chat)
  3. 3.GitHub authentication
  4. 4.Active subscription on GitHub account
  5. 5.Network connectivity to GitHub services

Any component failing disables suggestions.

Step 1: Check Authentication Status

Copilot requires GitHub authentication:

  1. 1.Verify sign-in:
  2. 2.Accounts icon in bottom left (or Activity Bar)
  3. 3.Should show your GitHub account
  4. 4.Hover to see authentication status
  1. 1.Force re-authentication:
  2. 2.Ctrl+Shift+P
  3. 3."GitHub: Sign Out"
  4. 4.Then "GitHub: Sign In"
  5. 5.Complete browser authentication
  1. 1.Check account has Copilot:
  2. 2.Go to https://github.com/settings/copilot
  3. 3.Verify subscription is active
  4. 4.Check seat is assigned to your account

Step 2: Verify Extension Installation

Copilot requires both extensions:

Check installed: ``bash code --list-extensions | grep copilot

Should show: - GitHub.copilot - GitHub.copilot-chat (for chat feature)

Install missing extensions: ``bash code --install-extension GitHub.copilot code --install-extension GitHub.copilot-chat

Check extension status: Extensions panel → GitHub Copilot → Should show "Enabled"

Step 3: Enable Inline Suggestions

Copilot suggestions might be disabled:

Check settings: ``json { "github.copilot.enable": { "*": true, "yaml": false, "plaintext": false }, "editor.inlineSuggest.enabled": true }

Enable for all languages: ``json { "github.copilot.enable": { "*": true } }

  1. 1.Test suggestions:
  2. 2.Open a JavaScript file
  3. 3.Start typing a function comment or signature
  4. 4.Gray inline suggestions should appear
  5. 5.Tab to accept

Step 4: Fix Network Connectivity

Copilot needs to reach GitHub servers:

Test connectivity: ``bash curl -I https://api.github.com curl -I https://copilot-proxy.githubusercontent.com

Configure proxy if needed: ``json { "github.copilot.proxy": "http://proxy.company.com:8080", "http.proxy": "http://proxy.company.com:8080" }

Firewall settings: Allow VS Code outbound HTTPS to: - api.github.com - copilot-proxy.githubusercontent.com - github.com

Step 5: Handle Enterprise Issues

Copilot for Business has additional requirements:

  1. 1.Check enterprise settings:
  2. 2.GitHub enterprise account must have Copilot enabled
  3. 3.You must be assigned a seat
  4. 4.Organization settings may restrict usage

Configure enterprise endpoint: ``json { "github.copilot.advanced": { "authProvider": "github-enterprise" } }

Contact IT/admin: If Copilot for Business isn't working: - Verify organization has Copilot subscription - Verify you're in allowed group - Check organization policy allows your usage

Step 6: Fix Chat Issues

Copilot Chat not responding:

Check Chat extension: ``bash code --list-extensions | grep copilot-chat

Enable Chat: ``json { "github.copilot-chat.followUp": true, "github.copilot-chat.experimental.context": true }

  1. 1.Reset Chat:
  2. 2.Ctrl+Shift+P
  3. 3."GitHub Copilot Chat: Reset"
  4. 4.Reload window

Step 7: Check Copilot Logs

See what Copilot is doing:

View Output: Output panel → "GitHub Copilot" → Read for errors

Enable debug logging: ``json { "github.copilot.debug": true, "github.copilot.traceLevel": "verbose" }

Common error messages: `` [error] Authentication failed [error] Rate limit exceeded [error] Unable to fetch suggestions

Step 8: Fix Rate Limiting

Copilot has usage limits:

  1. 1.Check limit status:
  2. 2.Go to https://github.com/settings/copilot
  3. 3.Check usage statistics

If rate limited: - Wait for limit reset (typically hourly) - Reduce suggestion requests - Disable Copilot for less critical files

Step 9: Handle File Type Restrictions

Copilot may be disabled for certain file types:

Check enable settings: ``json { "github.copilot.enable": { "*": true, "json": false, // Often disabled for JSON "markdown": true, // Enable if needed "yaml": true // Enable if needed } }

Override for specific files: In a file where Copilot should work, check if it's explicitly disabled in settings.

Verification

Test Copilot works:

  1. 1.Open a JavaScript file
  2. 2.Write a function signature: function calculateTotal(items)
  3. 3.Wait - gray suggestion should appear
  4. 4.Tab to accept suggestion
  5. 5.Chat: Open Copilot Chat view → Ask "How do I..." → Should respond
  6. 6.Status bar should show Copilot icon when suggestions available

Quick Reference

ProblemCauseSolution
No suggestionsNot authenticatedSign in to GitHub
Auth loopBad credentialsSign out, sign in fresh
Chat not workingMissing extensionInstall copilot-chat
Enterprise blockedNo seat assignedContact admin
Rate limitedUsage cap hitWait for reset
Some files workLanguage disabledEnable in github.copilot.enable

Copilot issues usually stem from authentication or subscription problems. Start with signing in, verify your subscription, then check network connectivity.