Co-authored-by: Claire W <78226508+crwaters16@users.noreply.github.com> Co-authored-by: Anne-Marie <102995847+am-stead@users.noreply.github.com> Co-authored-by: Jules <19994093+jules-p@users.noreply.github.com> Co-authored-by: Jules Porter <jules-p@users.noreply.github.com> Co-authored-by: hubwriter <hubwriter@github.com> Co-authored-by: Robert Sese <734194+rsese@users.noreply.github.com>
6.5 KiB
title, shortTitle, intro, versions, category, topics, redirect_from, contentType
| title | shortTitle | intro | versions | category | topics | redirect_from | contentType | |||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Keyboard shortcuts for GitHub Copilot in the IDE | Keyboard shortcuts | Find a list of keyboard shortcuts for {% data variables.product.prodname_copilot %} in the IDEs that support it. |
|
|
|
|
reference |
{% jetbrains %}
You can use the default keyboard shortcuts for inline suggestions in your JetBrains IDE when using {% data variables.product.prodname_copilot %}.
Keyboard shortcuts for macOS
| Action | Shortcut |
|---|---|
| Accept an inline suggestion | Tab |
| Dismiss an inline suggestion | Esc |
| Show next inline suggestion | Option (⌥) or Alt+] |
| Show previous inline suggestion | Option (⌥) or Alt+[ |
| Trigger inline suggestion | Option (⌥)+\ |
| Open {% data variables.product.prodname_copilot %} (additional suggestions in separate pane) | Option (⌥) or Alt+Return |
Keyboard shortcuts for Windows
| Action | Shortcut |
|---|---|
| Accept an inline suggestion | Tab |
| Dismiss an inline suggestion | Esc |
| Show next inline suggestion | Alt+] |
| Show previous inline suggestion | Alt+[ |
| Trigger inline suggestion | Alt+\ |
| Open {% data variables.product.prodname_copilot %} (additional suggestions in separate pane) | Alt+Enter |
Keyboard shortcuts for Linux
| Action | Shortcut |
|---|---|
| Accept an inline suggestion | Tab |
| Dismiss an inline suggestion | Esc |
| Show next inline suggestion | Alt+] |
| Show previous inline suggestion | Alt+[ |
| Trigger inline suggestion | Alt+\ |
| Open {% data variables.product.prodname_copilot %} (additional suggestions in separate pane) | Alt+Enter |
{% endjetbrains %}
{% visualstudio %}
You can use the default keyboard shortcuts for inline suggestions in {% data variables.product.prodname_vs %} when using {% data variables.product.prodname_copilot %}. You can search for each keyboard shortcut by its command name in the Keyboard Shortcuts editor.
| Action | Shortcut | Command name |
|---|---|---|
| Show next inline suggestion | Alt+. | Edit.NextSuggestion |
| Show previous inline suggestion | Alt+, | Edit.PreviousSuggestion |
{% endvisualstudio %}
{% vscode %}
You can use the default keyboard shortcuts for {% data variables.product.prodname_copilot %} in {% data variables.product.prodname_vscode %}. Search keyboard shortcuts by command name in the Keyboard Shortcuts editor.
Keyboard shortcuts for macOS
| Action | Shortcut | Command name |
|---|---|---|
| Accept an inline suggestion | Tab | editor.action.inlineSuggest.commit |
| Dismiss an inline suggestion | Esc | editor.action.inlineSuggest.hide |
| Show next inline suggestion | Option (⌥)+] |
editor.action.inlineSuggest.showNext |
| Show previous inline suggestion | Option (⌥)+[ |
editor.action.inlineSuggest.showPrevious |
| Trigger inline suggestion | Option (⌥)+\ |
editor.action.inlineSuggest.trigger |
| Open {% data variables.product.prodname_copilot %} (additional suggestions in separate pane) | Ctrl+Return | github.copilot.generate |
| Toggle {% data variables.product.prodname_copilot %} on/off | No default shortcut | github.copilot.toggleCopilot |
Keyboard shortcuts for Windows
| Action | Shortcut | Command name |
|---|---|---|
| Accept an inline suggestion | Tab | editor.action.inlineSuggest.commit |
| Dismiss an inline suggestion | Esc | editor.action.inlineSuggest.hide |
| Show next inline suggestion | Alt+] | editor.action.inlineSuggest.showNext |
| Show previous inline suggestion | Alt+[ | editor.action.inlineSuggest.showPrevious |
| Trigger inline suggestion | Alt+\ | editor.action.inlineSuggest.trigger |
| Open {% data variables.product.prodname_copilot %} (additional suggestions in separate pane) | Ctrl+Enter | github.copilot.generate |
| Toggle {% data variables.product.prodname_copilot %} on/off | No default shortcut | github.copilot.toggleCopilot |
Keyboard shortcuts for Linux
| Action | Shortcut | Command name |
|---|---|---|
| Accept an inline suggestion | Tab | editor.action.inlineSuggest.commit |
| Dismiss an inline suggestion | Esc | editor.action.inlineSuggest.hide |
| Show next inline suggestion | Alt+] | editor.action.inlineSuggest.showNext |
| Show previous inline suggestion | Alt+[ | editor.action.inlineSuggest.showPrevious |
| Trigger inline suggestion | Alt+\ | editor.action.inlineSuggest.trigger |
| Open {% data variables.product.prodname_copilot %} (additional suggestions in separate pane) | Ctrl+Enter | github.copilot.generate |
| Toggle {% data variables.product.prodname_copilot %} on/off | No default shortcut | github.copilot.toggleCopilot |
{% endvscode %}
{% xcode %}
You can use the default keyboard shortcuts for inline suggestions in Xcode when using {% data variables.product.prodname_copilot %}. Alternatively, you can rebind the shortcuts to your preferred keyboard shortcuts for each specific command.
| Action | Shortcut |
|---|---|
| Accept the first line of a suggestion | Tab |
| View full suggestion | Hold Option |
| Accept full suggestion | Option+Tab |
{% endxcode %}
{% eclipse %}
You can use the default keyboard shortcuts for inline suggestions in Eclipse when using {% data variables.product.prodname_copilot %}.
| Action | Shortcut |
|---|---|
| Accept an inline suggestion | Tab |
| Accept next word of an inline suggestion | Command+→ (Mac) or Ctrl+→ (Windows) |
| Dismiss an inline suggestion | Esc |
| Trigger inline suggestion | Option (⌥)+Command+/ (Mac) or Alt+Ctrl+/ (Windows) |
{% endeclipse %}
{% vimneovim %}
You can rebind the keyboard shortcuts in Vim/Neovim when using {% data variables.product.prodname_copilot %} to use your preferred keyboard shortcuts for each specific command. For more information, see the Map article in the Neovim documentation.
{% endvimneovim %}