首页 > 解决方案 > GitHub Copilot 与 vscode 中 R 的扩展之间的冲突

问题描述

我无法在 Visual Studio Code 中使用 GitHub 的 Copilot 执行我的 R 代码。R 扩展名是@ext:ikuyadeu.r

问题可能是他们使用相同的命令。

r.runSelection:“Ctrl+Enter”

github.copilot.generate:“Ctrl+Enter”

我编辑了 keybindings.json

{
[
   {
       "key": "ctrl+enter",
       "command": "r.runSelection",
       "when": "editorTextFocus && editorLangId == 'r'"
   },
   {
       "key": "ctrl+p",
       "command": "github.copilot.generate",
       "when": "editorTextFocus && editorLangId == 'python'"
   }
]
}

和 settings.json:

    "github.copilot.enable" : {
        "*": false,
        "yaml": false,
        "r": false,
        "plaintext": false,
        "markdown": false,
        "python": true,
        "jsonc": true
    }

但这并不成功。

标签: rvisual-studio-code

解决方案


推荐阅读