Reputation: 287
"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
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
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
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
Reputation: 420
I found it helpful that you can enable and disable GitHub Copilot for different languages, frameworks, and tools.
Upvotes: 5
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
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).
Upvotes: 3
Reputation: 117
In my case I somehow had "github.copilot.inlineSuggest.enable": false
in my configuration, commenting it resolved it.
Upvotes: 5
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