Skip to main content

Github Copilot Keyboard Shortcuts

GitHub Copilot is a powerful tool that can help you write code faster. It can suggest code completions, generate documentation, and write entire functions. To help you get the most out of Copilot, the following is a compiled list of keyboard shortcuts that you can use to interact with Copilot more efficiently.

Visual Studio Code

The following shortcuts are available for Visual Studio Code:

Accept suggestion:

OSShortcut
macOSTAB key
WindowsTAB key

Reject suggestion:

OSShortcut
macOSEsc key
WindowsEsc key

Accept next word:

OSShortcut
macOScommand + Right Arrow key
WindowsCtrl + Right Arrow key

Show alternative suggestions:

OSShortcut
macOSCtrl + Enter key
WindowsCtrl + Enter key

Show next suggestion:

OSShortcut
macOSoption + ] key
WindowsAlt + ] key

Show previous suggestion:

OSShortcut
macOSoption + [ key
WindowsAlt + [ key

Trigger inline chat:

OSShortcut
macOScommand + I key
WindowsCtrl + I key

Open chat view:

OSShortcut
macOScommand + control + I key
WindowsCtrl + Alt + I key

Visual Studio

The following shortcuts are available for Visual Studio:

Show inline chat:

OSShortcut
macOScommand + / key
WindowsAlt + / key

Show alternative suggestions:

OSShortcut
macOSoption + . key
WindowsAlt + . key

Accept suggestion:

OSShortcut
macOSTAB key
WindowsTAB key

Reject suggestion:

OSShortcut
macOSEsc key
WindowsEsc key

Accept next word:

OSShortcut
macOScommand + Right Arrow key
WindowsCtrl + Right Arrow key

JetBrains IDEs

The following shortcuts are available for JetBrains IDEs:

Show alternative suggestions:

OSShortcut
macOScommand + shift + A key
WindowsCtrl + Enter key

Show next suggestion:

OSShortcut
macOSoption + ] key
WindowsAlt + ] key

Show previous suggestion:

OSShortcut
macOSoption + [ key
WindowsAlt + [ key

Accept next word:

OSShortcut
macOScommand + Right Arrow key
WindowsCtrl + Right Arrow key

Show inline chat:

OSShortcut
macOScommand + shift + I key
WindowsCtrl + Shift + I key