在GitHub Copilot中使用Tab键不会触发内联建议 – macOS Visual Studio Code。

huangapple go评论64阅读模式
英文:

Using tab in GitHub Copilot doesn't trigger the inline suggestion - macOS Visual Studio Code

问题

I am a new user of GitHub Copilot and I am having trouble triggering the in-line suggestions it provides. 我是GitHub Copilot的新用户,我在触发它提供的内联建议时遇到了问题。

The expected output is that I should be able to accept copilot inline suggestions by pressing tab, enter, or space. 期望的输出是我应该能够通过按Tab、Enter或空格来接受Copilot的内联建议。

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. 我确保我正在使用最新版本的Visual Studio Code,目前是1.78.2版本。

  2. I ensured that my machine is updated to Mac Air M1 13.3.1. 我确保我的机器已更新至Mac Air M1 13.3.1。

  3. I installed the latest version of GitHub Copilot, which is currently v1.86.82. 我安装了最新版本的GitHub Copilot,目前是v1.86.82。

I have also checked and updated my VS Code settings to include the following: 我还检查并更新了我的VS Code设置,包括以下内容:

"[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? 有关这里发生了什么的任何想法?

英文:

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

答案1

得分: 1

问题可能是由于GitHub Copilot与某些其他按键绑定竞争使用Tab键而引起的。您可以尝试查看键盘快捷键界面,并搜索Tab键(使用“记录键”按钮)来找出冲突是什么,或者按照按键绑定故障排除步骤进行操作,或者如果您怀疑是其他扩展引起的问题,请执行扩展二分法测试。否则,您可以尝试更改GitHub Copilot接受命令的不会引起冲突的不同按键。

英文:

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.

huangapple
  • 本文由 发表于 2023年5月13日 22:51:05
  • 转载请务必保留本文链接:https://go.coder-hub.com/76243327.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定