GitHub Copilot keyboard shortcuts
GitHub Copilot is an AI coding assistant that suggests code as you type in your editor. These VS Code defaults accept, dismiss, cycle, or request inline suggestions, take a long suggestion one word or line at a time, and open the suggestions pane.
Windows, macOS, Linux · 6 shortcutsInline suggestions
Accept, dismiss, move through, or request a suggestion, or open Copilot's separate suggestions pane while editing code.
| Action | Shortcuts |
|---|---|
| Accept an inline suggestion | Windows / macOS / LinuxTab |
| Dismiss an inline suggestion | Windows / macOS / LinuxEsc |
| Show the next inline suggestion | Windows / LinuxAlt + ] macOSOption + ] |
| Show the previous inline suggestion | Windows / LinuxAlt + [ macOSOption + [ |
| Trigger an inline suggestion | Windows / LinuxAlt + \ macOSOption + \ |
| Open GitHub Copilot for additional suggestionsIn VS Code this is Ctrl+Enter on every platform, Mac included. JetBrains uses Option or Alt+Enter instead. | Windows / macOS / LinuxCtrl + Enter |
Source
official GitHub Copilot IDE keyboard shortcuts · Checked
Default keys in Visual Studio Code. JetBrains, Visual Studio, Xcode, and other editors use different keys, and you can rebind them.