Keyboard shortcuts for GitHub Copilot in the IDE
Find a list of keyboard shortcuts for GitHub Copilot in the IDEs that support it.
JetBrains IDEs
You can use the default keyboard shortcuts for inline suggestions in your JetBrains IDE when using GitHub 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 GitHub 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 GitHub 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 GitHub Copilot (additional suggestions in separate pane) | Alt+Enter |
Visual Studio
You can use the default keyboard shortcuts for inline suggestions in Visual Studio when using GitHub 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 |
VS Code
You can use the default keyboard shortcuts for GitHub Copilot in Visual Studio Code. 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 GitHub Copilot (additional suggestions in separate pane) | Ctrl+Return | github.copilot.generate |
| Toggle GitHub 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 GitHub Copilot (additional suggestions in separate pane) | Ctrl+Enter | github.copilot.generate |
| Toggle GitHub 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 GitHub Copilot (additional suggestions in separate pane) | Ctrl+Enter | github.copilot.generate |
| Toggle GitHub Copilot on/off | No default shortcut | github.copilot.toggleCopilot |
Xcode
You can use the default keyboard shortcuts for inline suggestions in Xcode when using GitHub 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 |
Eclipse
You can use the default keyboard shortcuts for inline suggestions in Eclipse when using GitHub 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) |
Vim/Neovim
You can rebind the keyboard shortcuts in Vim/Neovim when using GitHub Copilot to use your preferred keyboard shortcuts for each specific command. For more information, see the Map article in the Neovim documentation.