Fixing GitHub Copilot Inline Suggestions
A short post on how to control GitHub Copilot's inline suggestions in VSCode. One of the most frustrated things about using GitHub Copilot has been the default behavior of inline suggestions. If I were piloting a plane, it would be very annoying if the copilot decided to reach over and grab my controls any time it pleased. However, there are times when I do wish I had access to these suggestions, so I do not want to disable them completely. The following shows how to disable inline suggestions by default and invoke it with an explicit keyboard shortcut. Add the following to your VSCode user settings. This disables inline suggestions. When you wish to invoke inline suggestions, use the By default, this is bound to One the suggestion appears, it can be accepted as normal with By default, Disable Inline Suggestions
Trigger Inline Suggestions
editor.action.inlineSuggest.trigger
vscode command.alt+\
on windows and opt+\
on mac.Accept Inline Suggestions
tab
. Or, using the editor.action.inlineSuggest.acceptNextWord
and editor.action.inlineSuggest.acceptNextLine
vscode commands, the first parts of the suggestions can be accepted. These are helpful when only the first portion of the inline suggestion is desired.editor.action.inlineSuggest.acceptNextWord
is bound to ctrl+right
on windows and cmd+right
on mac. But, editor.action.inlineSuggest.acceptNextLine
has no keybinding, so you will need to make a custom shortcut.