I can't execute my R code using GitHub's Copilot in Visual Studio Code. The R extension is @ext:ikuyadeu.r
The problem is probably that they use the same command.
r.runSelection: "Ctrl+Enter"
github.copilot.generate: "Ctrl+Enter"
I edited the keybindings.json
{
[
{
"key": "ctrl+enter",
"command": "r.runSelection",
"when": "editorTextFocus && editorLangId == 'r'"
},
{
"key": "ctrl+p",
"command": "github.copilot.generate",
"when": "editorTextFocus && editorLangId == 'python'"
}
]
}
and settings.json:
"github.copilot.enable" : {
"*": false,
"yaml": false,
"r": false,
"plaintext": false,
"markdown": false,
"python": true,
"jsonc": true
}
But it was not successful.