5

As mentioned, how can I accept the Github Copilot inline suggestion with the right arrow key instead of the tab key in VSCode?

GorvGoyl
  • 42,508
  • 29
  • 229
  • 225

1 Answers1

7
  1. Click File -> Preferences -> Keyboard shortcuts.
  2. Search for 'editor.action.inlineSuggest.commit' (command that accepts the Copilot suggestion).
  3. Double click it and assign new shortcut, for example right arrow key.
Gregory L
  • 376
  • 3
  • 5
  • It works most of the time, but sometimes it just move the cursor instead of accepting the suggestion. For example when the autocomplete modal is open. I tried to modify the "when" condition of several shortcuts but without any success. Any idea how to fix that ? – Co_42 May 23 '23 at 14:50