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

6

5
"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?

Archimage answered 3/6, 2023 at 15:34 Comment(0)
A
4

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

Aplomb answered 8/2, 2024 at 13:58 Comment(0)
B
3

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.

Blindfish answered 30/7, 2023 at 12:26 Comment(0)
B
3

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

Buoy answered 29/2, 2024 at 15:49 Comment(0)
S
2

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.

Sundries answered 11/9, 2024 at 21:41 Comment(2)
In addition, Github Copilot extension needed to restart (to apply updates), but I had left my editor in debugging mode, and it could not auto restart. I had to stop debugging and manually restart the extension.Crusty
This was the answer for me. If you have one language disabled, all others are by default disabled unless you add *:true or specify true for the languages you want enabled.Cindy
M
1

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

enter image description here

Murmansk answered 22/7, 2024 at 9:12 Comment(0)
T
0

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
  },
Thermal answered 18/4, 2024 at 17:1 Comment(0)

© 2022 - 2025 — McMap. All rights reserved.