dnAir
dnAir

Reputation: 287

GitHub Copilot does not suggest anything anymore after I fiddled around with Visual Studio Codes settings for auto suggestions / completes

"editor.autoClosingBrackets": false,
"editor.suggestOnTriggerCharacters": false,
"editor.acceptSuggestionOnCommitCharacter": false

those are the things i tested around disabling/enabling. there might be more options i changed but I cant remember which ones. anyway all of a sudden copilot does not suggest anything anymore. those 3 options above are all set to true and the copilot icon in the bottom right of vscode tells me that it's running.

what could be the reason for that?

Upvotes: 6

Views: 18430

Answers (8)

Evan
Evan

Reputation: 76

I had the same problem in visual studio (not code). If you go to Output and set it to GitHub Copilot you see alot of informations that can help identify the problem. For me it told me this:

Copilot may not display suggestions. Enable whole line completions in IntelliCode settings for complete suggestions.

And that was exactly the problem. After turning this on in settings it was working again.

Upvotes: 0

Semjon Mössinger
Semjon Mössinger

Reputation: 1890

GitHub Copilot often stops working when you're using an outdated version of Copilot. I often had issues and just to update and restart copilot (and maybe the IDE) fixed the problem for me.

Upvotes: 0

SameOlds
SameOlds

Reputation: 31

I accidentally had two GitHub accounts signed simultaneously in vscode. One account included a copilot subscription, the other didn't. This prevented the code suggestions.

Upvotes: 3

jens_laufer
jens_laufer

Reputation: 420

I found it helpful that you can enable and disable GitHub Copilot for different languages, frameworks, and tools.

enter image description here

Upvotes: 5

Abdulkarim G
Abdulkarim G

Reputation: 29

This is the solution.

Hit CTRL + SHIFT + P and type "Open Settings (JSON)" and click Enter.

Please change the value of the keys to "true" as shown below.

  "github.copilot.enable": {
    "*": true,
    "plaintext": true,
    "markdown": true,
    "scminput": true
  },

Upvotes: 1

AndreaScn
AndreaScn

Reputation: 121

I stumbled on this question while I was searching for a solution regarding the same problem but for JetBrains WebStorm IDE. Writing it here in case someone else has the same need: for me, it was enough to just go over the Github Copilot settings among the Webstorm preferences and enable the checkbox in the screenshot, that has been disabled in an unclear way (since I didn't disable it on my own).

Webstorm Github Copilot settings

Upvotes: 3

Alex Kubica
Alex Kubica

Reputation: 117

In my case I somehow had "github.copilot.inlineSuggest.enable": false in my configuration, commenting it resolved it.

Upvotes: 5

antipopp
antipopp

Reputation: 599

I was playing with those settings too and found Copilot not working all of a sudden.

Inspect your settings via the JSON file and see if you see any other option you don't know about and play with that.

In my case, "editor.inlineSuggest.enabled": false was the problem. Set it to true and Copilot should be back up again.

Upvotes: 4

Related Questions