Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shortcut keys conflict with copilot #335

Closed
Windrain7 opened this issue Mar 20, 2024 · 3 comments
Closed

Shortcut keys conflict with copilot #335

Windrain7 opened this issue Mar 20, 2024 · 3 comments
Assignees
Milestone

Comments

@Windrain7
Copy link

If you run this plugin, Copilot's corresponding shortcut key cannot be used.

@kasecato
Copy link
Owner

kasecato commented Mar 31, 2024

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

@kasecato kasecato self-assigned this Mar 31, 2024
@kasecato kasecato added this to the v1.6.1 milestone Mar 31, 2024
@kasecato
Copy link
Owner

Default keybindings of GitHub Copilot for VS Code

{
  "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"
}

@kasecato
Copy link
Owner

kasecato commented Apr 1, 2024

Look like these default keybindings are okay, probably the Accept Word operation of ctrl+right / cmd+right

https://docs.github.com/en/copilot/using-github-copilot/getting-started-with-github-copilot#partially-accepting-suggestions-1

kasecato added a commit that referenced this issue Apr 1, 2024
Fixed #335 that shortcut keys conflict with copilot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants