GitHub Copilot keyboard shortcuts

GitHub Copilot's documented keys live inside the host IDE. These entries use GitHub's current Visual Studio Code reference for inline suggestions and the separate pane, with the same suggestion controls also documented for JetBrains IDEs.

Windows, macOS, Linux · 8 shortcuts

Inline suggestions

Accept, dismiss, move through, or request a Copilot suggestion while editing code in the host IDE.

ActionWindowsmacOSLinux
Accept an inline suggestionTabTabTab
Dismiss an inline suggestionEscEscEsc
Show the next inline suggestionAlt]Option]Alt]
Show the previous inline suggestionAlt[Option[Alt[
Trigger an inline suggestionAlt\Option\Alt\

Copilot pane

Open the separate Copilot suggestions pane when the inline result is not the one you want to use.

ActionWindowsmacOSLinux
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.CtrlEnterCtrlEnterCtrlEnter

Suggestion navigation

Accept the next word or line when a longer completion is visible in the Copilot inline suggestion.

ActionWindowsmacOSLinux
Accept the next word of a suggestionCtrlRightCmdRightCtrlRight
Accept the next line of a suggestionGitHub documents this command in its code-suggestions guide. The inline suggestion accept-next-line command may need a custom key binding in some host versions.CtrlAltRightCmdCtrlRightCtrlAltRight

Make a printable GitHub Copilot sheet