4

I recently installed Github CoPilot extension in my VSCode editor (v1.76.1) on Ubuntu 20.04. I am able to trigger inline suggestions using Alt + \, but I am unable to use Alt + [ or Alt + ] shortcuts to navigate between suggestions. Additionally, when I hover over the inline suggestion, I don't see the "prev" and "next" options.

I have confirmed that I am running the latest version of CoPilot (v1.77.9225) and CoPilot Labs (v0.12.791). I have also checked my keyboard shortcut settings for Github CoPilot and they seem to be correct (see attached photo).

Is anyone else experiencing this issue? Any suggestions on how to resolve it would be greatly appreciated. Thank you.

Attached photos:

Screenshot showing cursor over inline suggestion without prev/next options

Screenshot showing keyboard shortcut settings for Github CoPilot: Screenshot showing keyboard shortcut settings for Github CoPilot

dnrandom
  • 71
  • 3

3 Answers3

0

What worked for me was to set these two shortcuts here (which were unset on my VSCodium installation):

enter image description here

FWIW, this is what gets added to keybindings.json:

{
    "key": "alt+9",
    "command": "editor.action.inlineSuggest.showNext"
},
{
    "key": "alt+8",
    "command": "editor.action.inlineSuggest.showPrevious"
}
Waldir Leoncio
  • 10,853
  • 19
  • 77
  • 107
0

Add or change setting.json this line like this:

"editor.inlineSuggest.enabled": true
Ilkka
  • 1
  • 1
  • 2
  • Your answer could be improved with additional supporting information. Please [edit] to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers [in the help center](/help/how-to-answer). – Community May 23 '23 at 08:41
0

In settings.json, delete this line of code:

"editor.inlineSuggest.showToolbar": "always",

settings.json can be opened by clicking Edit in settings.json in Github Copilot settings under File > Preferences > Settings > Extensions > Copilot in VSCode. enter image description here

Now, the inline suggestions toolbar should show.

Read more: https://code.visualstudio.com/updates/v1_75#_redesigned-inline-suggestions-toolbar

Blooming
  • 43
  • 1
  • 8