skip to Main Content

I would like to be able to accept only the next word of a github Copilot suggestion, instead of the full suggestion. Is there a way to do this?

2

Answers


  1. Chosen as BEST ANSWER

    This option exists in VSCode keyboard preferences, but is not enabled by default (though a default keybinding might be coming soon). To enable a shortcut to accept only the next word, in VS Code go to File -> Preferences -> KeyboardShortcuts -> type "acceptNextWord" -> click "+" -> enter your desired keyboard shortcut.

    I set acceptNextWord to be alt + RightArrow to be analogous to Copilot's alt + ] and alt + [ for next suggestion and previous suggestion.


  2. The default keyboard shortcut is now "Cmd/Ctrl + Right Arrow".

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search