dnrandom
dnrandom

Reputation: 91

VSCode not showing Github CoPilot shortcuts and prev/next options

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

Upvotes: 6

Views: 5465

Answers (3)

Blooming
Blooming

Reputation: 73

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

Upvotes: 0

Ilkka
Ilkka

Reputation: 1

Add or change setting.json this line like this:

"editor.inlineSuggest.enabled": true

Upvotes: 0

Waldir Leoncio
Waldir Leoncio

Reputation: 11341

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"
}

Upvotes: 0

Related Questions