Peter Sun
Peter Sun

Reputation: 1825

Visual Studio 2022 - Unable to get GitHub Copilot to sign in

I am trying to sign in to GitHub Copilot for Visual Studio 2022, but VS won't take my sign-in. In the GitHub Copilot Chat window, I select 'sign in'. A browser windows to sign into GitHub, I sign in, and then it directs me to open Visual Studio, a command window opens, and nothing. The GitHub Copilot window doesn't change.

I tried using multiple browsers (Chrome, Edge). I deleted the cache and data. Same issue.

Any suggestions on what to do next?

Upvotes: 1

Views: 117

Answers (1)

Nikita Struk
Nikita Struk

Reputation: 33

I would recommend following possible solutions to this issue:

  1. Clearing Visual Studio credentials. Type "Credential Manager" to the bottom search bar. Choose Windows credentials. Delete GitHub for Visual Studio credentials. After that, open Visual Studio and sign in again. If this won't work. Try to delete all credentials that are related to Github and reopen Visual Studio.
  2. Reinstalling the Github-Copilot extension. Open Visual Studio Installer. At the right of you installed Visual Studio tool click on "Modify". Choose "Individual components". Type in the search bar "Github Copilot" and unbox the option. After that, click "modify". At last, when extention is uninstall, repeat the process by installing it again.
  3. Check Personal Access Token status. If you chose PAT option to sign in into Github account in Visual Studio, check if it is expired. In one way or another, try to use new PAT to sign in.

Please add logs content to clarify the details. Perhaps it can help investigate the cause of the issue.

Upvotes: 0

Related Questions