0

I am a new user of GitHub Copilot and I am having trouble triggering the in-line suggestions it provides. I have tried various settings and configurations, but I am still unable to get it to work properly.

The expected output is that I should be able to accept copilot inline suggestions by pressing tab, enter, or space.

I have taken several steps to try and resolve the issue.

  1. I made sure that I am using the most recent version of Visual Studio Code, which is currently 1.78.2.
  2. I ensured that my machine is updated to Mac Air M1 13.3.1.
  3. I installed the latest version of GitHub Copilot, which is currently v1.86.82.

I have also checked and updated my VS Code settings to include the following:

"[copilotignore]": {
    "editor.acceptSuggestionOnCommitCharacter": true,
    "editor.acceptSuggestionOnEnter": "smart"
  },

  "github.copilot.advanced": {
    // "secret_key": "",
    "useTab": true
  },
  "github.copilot.editor.enableAutoCompletions": true,
  "emmet.showSuggestionsAsSnippets": true,
  "github.copilot.enable": {
    "*": true,
    "plaintext": true,
    "markdown": true,
    "scminput": true,
    "javascript": true
  },
  "editor.acceptSuggestionOnEnter": "smart",
  "extensions.autoCheckUpdates": true,

Any ideas what's going on here? enter image description here

starball
  • 20,030
  • 7
  • 43
  • 238
Omar
  • 1
  • related docs: https://marketplace.visualstudio.com/items?itemName=GitHub.copilot, and https://docs.github.com/en/copilot/getting-started-with-github-copilot?tool=vscode – starball May 13 '23 at 20:25
  • are there any other extensions possibly interfering with copilot's keyboard bindings? What if you disable all extensions except for the language extension and copilot? – starball May 13 '23 at 20:26
  • Yes actually! I checked my keyboard settings again and found that copilot was interfering with intellisense. I guess they were "competing" for the tab button and that was what caused the bug. I changed the copilot accept keyboard shortcut to right arrow instead of tab and it worked. Thank You! – Omar May 16 '23 at 13:16

1 Answers1

0

The problem may be due to GitHub copilot competing with some other keybindings for use of the tab key. You can try to figure out what that conflict is by looking at the keyboard shortcut UI and searching for the tab key (use the "Record Keys" button), or follow the keybinding troubleshooting steps, or if you suspect another extension, do an extension bisect. Otherwise, you can try changing the GitHub copilot acceptance command to different keys without conflict issues.

starball
  • 20,030
  • 7
  • 43
  • 238