Closed Windrain7 closed 7 months ago
To support this, IntelliJ and VSCode have the same GitHub Copilot shortcut key. We don't disable IntelliJ key bindings because of conflicts, but we can change the key bindings for VSCode Copilot to IntelliJ
{
"key": "ctrl+/",
"command": "github.copilot.acceptCursorPanelSolution",
"when": "github.copilot.activated && github.copilot.panelVisible"
},
{
"key": "alt+]",
"command": "github.copilot.nextPanelSolution",
"when": "github.copilot.activated && github.copilot.panelVisible"
},
{
"key": "alt+[",
"command": "github.copilot.previousPanelSolution",
"when": "github.copilot.activated && github.copilot.panelVisible"
},
{
"key": "ctrl+enter",
"command": "github.copilot.generate",
"when": "editorTextFocus && github.copilot.activated && !inInteractiveInput && !interactiveEditorFocused"
},
{
"key": "alt+\",
"command": "editor.action.inlineSuggest.trigger",
"when": "config.github.copilot.inlineSuggest.enable && editorTextFocus && !editorHasSelection && !inlineSuggestionsVisible"
},
{
"key": "ctrl+i",
"mac": "cmd+i",
"command": "github.copilot.terminal.suggestCommand",
"when": "terminalFocus"
}
Look like these default keybindings are okay, probably the Accept Word
operation of ctrl+right
/ cmd+right
If you run this plugin, Copilot's corresponding shortcut key cannot be used.