Search code examples
visual-studiogithubgithub-copilot

Can not connect GitHub Copilot to my Visual Studio


In Visual Studio I am clicking in the right upper corner GitHub Copilot and then Add GitHub account to Visual Studio....

enter image description here

Then I log into my GitHub account and click Continue.

enter image description here

After that I am getting redirected to https://localhost:59144/ with the This site can’t be reached message.

enter image description here

So, as a result nothing changes in Visual Studio, particularly I am not getting logged into GitHub Copilot in Visual Studio. Is there a way to access GitHub Copilot through Visual Studio or is it supposed to work only with Visual Studio Code?


Solution

  • Try changing the browser, I had the same issue with edge, I tried with chrome and it worked. Might be an issue with cache, try clearing that as well