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 shortcuts

Inline suggestions

Accept, dismiss, move through, or request a suggestion, or open Copilot's separate suggestions pane while editing code.

ActionShortcuts
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 suggestionsGitHub's Visual Studio Code table publishes Ctrl+Enter for all three platforms. JetBrains uses Option or Alt+Enter instead.
Windows / macOS / LinuxCtrl + Enter

Source

official GitHub Copilot IDE keyboard shortcuts · Checked

GitHub's current shortcut page separates Visual Studio Code, JetBrains, Visual Studio, Eclipse, Vim/Neovim, and Xcode. This record uses the Visual Studio Code defaults for Windows, macOS, and Linux. Host keymaps and user rebinding can change the active commands.

Make a printable GitHub Copilot sheet