| title | Keyboard shortcuts for GitHub Copilot in the IDE | ||
|---|---|---|---|
| shortTitle | Keyboard shortcuts | ||
| intro | Find a list of keyboard shortcuts for {% data variables.product.prodname_copilot %} in the IDEs that support it. | ||
| versions |
|
||
| category |
|
||
| redirect_from |
|
||
| contentType | reference |
{% jetbrains %}
You can use the default keyboard shortcuts for inline suggestions in your JetBrains IDE when using {% data variables.product.prodname_copilot %}.
| 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 (⌥)+\ |
| 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+\ |
| 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+\ |
{% 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.
| 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 |
| Toggle {% data variables.product.prodname_copilot %} on/off | No default shortcut | github.copilot.toggleCopilot |
| 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 |
| Toggle {% data variables.product.prodname_copilot %} on/off | No default shortcut | github.copilot.toggleCopilot |
| 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 |
| 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 %}