But then when I went to use the shortcut to disable it, the extension popped up this confirmation dialog in the corner. The focus was still in the editor so there was no way to select ‘Disable Globally’ without using my mouse. Super annoying.
I went to the [GitHub community discussions] to see if anyone had requested a change to this behaviour. It turns out there were multiple posts asking about this, but one of them included a workaround from Dan Davidson.
It turns out we can attach a keyboard command to update the workspace setting github.copilot.inlineSuggest.enable. When that setting is set to false, Copilot will stop with the inline suggestions.
By using the Settings Cycler extension (first time I’d heard about this one, btw) we can assign a keyboard shortcut to toggle the setting on and off. Here’s mine (I chose to use ctrl+c):