skip to Main Content

I’m using copilot.

I need to use option + [, to get another suggestions from copilot.

But on my M1 PRO, if I press option + [, ‘ or " comes out.

Is there any way to modify this?

In order to use other suggestions in copilot, I changed the shortcut corresponding to option + [ in vscode.

option + [ pressing, I get ‘ or "..

2

Answers


  1. In the CoPilot docs, see for Visual Studio Code "Keyboard shortcuts for GitHub Copilot". Note the command names.

    To customize the key binding in VS Code, open Keyboard Shortcuts (cmd-k cmd-s) and search for editor.action.inlineSuggest.showNext, which is the command name for "Show next inline suggestion". Double-click to change the key binding.

    Login or Signup to reply.
  2. So option+] does not work for me, but shift+option+] does, so I have made this keybinding. To open keyboard.json, press cmd+shift+p and search for json keyboard.

    {
      {
        "key": "shift+alt+[",
        "command": "editor.action.inlineSuggest.showPrevious",
        "when": "inlineSuggestionVisible && !editorReadonly"
      }
    }
    

    So now I can type

    function calculateDaysBetweenDates(begin, end) {
    

    trigger suggestion with option+, and use shift+option+[ or shift+option+] to cycle through suggestions.

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