How to sign in with GitHub account on GitHub Copilot
Sign in to GitHub Copilot by installing the GitHub Copilot extension in your IDE, clicking the sign-in prompt, and authorizing through GitHub's authentication flow. Once authenticated, you'll have access to AI-powered code suggestions and completions.
Prerequisites
- A valid GitHub account
- GitHub Copilot subscription
- VS Code or compatible IDE installed
- Stable internet connection
Step-by-Step Instructions
Install GitHub Copilot Extension
Ctrl+Shift+X. Search for GitHub Copilot and click Install on the official GitHub Copilot extension.Access Sign-In Prompt
Ctrl+Shift+P and type GitHub Copilot: Sign In.Authorize Device Code
https://github.com/login/device manually.Enter Device Code
Grant Authorization
Confirm Authentication
Test Copilot Functionality
Tab to accept suggestions or Escape to dismiss them.Common Issues & Troubleshooting
Device code expired during authentication
Close the browser tab and VS Code dialog, then restart the sign-in process using Ctrl+Shift+P and typing GitHub Copilot: Sign In. Complete the process more quickly this time.
Copilot not providing suggestions after sign-in
Check that your GitHub Copilot subscription is active by visiting github.com/settings/copilot. Also ensure the Copilot extension is enabled in VS Code's Extensions panel.
Sign-in fails with network error
Check your internet connection and any corporate firewall settings. You may need to configure proxy settings in VS Code or ask your IT administrator to whitelist *.github.com and *.githubusercontent.com.
VS Code doesn't show sign-in notification
Manually trigger sign-in by opening Command Palette with Ctrl+Shift+P, typing GitHub Copilot: Sign In, and selecting the command. Alternatively, click the Copilot icon in the status bar.