GitHub Copilot Keyboard Shortcuts Cheat Sheet

GitHub Copilot FundamentalsLesson 10 of 13Beginner7 min readVersion-sensitive
Published
Updated
Last technically verified
GitHub Copilot Keyboard Shortcuts Cheat SheetGitHub Copilot Fundamentals10Beginner/github-copilot/getting-started/keyboard-shortcuts/

A quick reference for every GitHub Copilot keyboard shortcut documented by GitHub, organised by editor and platform.

VS Code

Inline suggestions — macOS

ActionShortcutCommand
Accept an inline suggestionTabeditor.action.inlineSuggest.commit
Dismiss an inline suggestionEsceditor.action.inlineSuggest.hide
Show next inline suggestionOption+]editor.action.inlineSuggest.showNext
Show previous inline suggestionOption+[editor.action.inlineSuggest.showPrevious
Trigger inline suggestionOption+\editor.action.inlineSuggest.trigger
Open Copilot in a separate paneCtrl+Returngithub.copilot.generate
Toggle Copilot on/offNo default shortcutgithub.copilot.toggleCopilot

Inline suggestions — Windows and Linux

ActionShortcutCommand
Accept an inline suggestionTabeditor.action.inlineSuggest.commit
Dismiss an inline suggestionEsceditor.action.inlineSuggest.hide
Show next inline suggestionAlt+]editor.action.inlineSuggest.showNext
Show previous inline suggestionAlt+[editor.action.inlineSuggest.showPrevious
Trigger inline suggestionAlt+\editor.action.inlineSuggest.trigger
Open Copilot in a separate paneCtrl+Entergithub.copilot.generate
Toggle Copilot on/offNo default shortcutgithub.copilot.toggleCopilot

Chat

ActionmacOSWindows / Linux
Quick chatShift+Option+Command+LCtrl+Shift+Alt+L
Inline chatCommand+iCtrl+i
Open the chat viewChat icon in the title barChat icon in the title bar

Visual Studio

GitHub documents two default Copilot bindings for Visual Studio. Both are searchable by command name in the Keyboard Shortcuts editor.

ActionShortcutCommand name
Show next inline suggestionAlt+.Edit.NextSuggestion
Show previous inline suggestionAlt+,Edit.PreviousSuggestion

JetBrains IDEs

The same bindings apply across the JetBrains family — IntelliJ IDEA, PyCharm, WebStorm, GoLand, Rider and the rest.

macOS

ActionShortcut
Accept an inline suggestionTab
Dismiss an inline suggestionEsc
Show next inline suggestionOption or Alt+]
Show previous inline suggestionOption or Alt+[
Trigger inline suggestionOption+\
Open Copilot (suggestions in a separate pane)Option or Alt+Return

Windows

ActionShortcut
Accept an inline suggestionTab
Dismiss an inline suggestionEsc
Show next inline suggestionAlt+]
Show previous inline suggestionAlt+[
Trigger inline suggestionAlt+\
Open Copilot (suggestions in a separate pane)Alt+Enter

Linux

ActionShortcut
Accept an inline suggestionTab
Dismiss an inline suggestionEsc
Show next inline suggestionAlt+]
Show previous inline suggestionAlt+[
Trigger inline suggestionAlt+\
Open Copilot (suggestions in a separate pane)Alt+Enter

Eclipse

ActionShortcut
Accept an inline suggestionTab
Accept next word of an inline suggestionCommand+ (macOS) or Ctrl+ (Windows)
Dismiss an inline suggestionEsc
Trigger inline suggestionOption+Command+/ (macOS) or Alt+Ctrl+/ (Windows)

Xcode

Xcode behaves differently enough to catch people out.

ActionShortcut
Accept the first line of a suggestionTab
View the full suggestionHold Option
Accept the full suggestionOption+Tab

Vim and Neovim

GitHub does not ship default Copilot key mappings for Vim or Neovim. You bind them yourself using standard Neovim mapping, and GitHub’s reference points at the Neovim Map documentation for how.

This is consistent with Vim’s conventions rather than an omission — but it does mean there is nothing to reproduce here, and any cheat sheet listing “default Vim Copilot shortcuts” has invented them.

Copilot CLI

Copilot CLI is a terminal interface, not an editor, so its bindings are its own.

ShortcutPurpose
EscCancel the current operation. Press twice to interrupt the running turn, or to stop background agents when the main agent is idle
Ctrl+CCancel operation / clear input. Press twice to exit
?Open quick help on an empty prompt
!Run a command in your local shell, bypassing Copilot. ! alone enters shell mode
$Hand the terminal to a real interactive shell rooted at the session’s working directory
@ FILENAMEInclude a file’s contents in the context
# NUMBERInclude a GitHub issue or pull request in the context

The five that matter

If you only commit a handful to memory, make it these — they cover the vast majority of real interaction with inline suggestions.

RankActionBindingWhy it earns the memory
1AcceptTabUniversal across every editor that supports suggestions
2DismissEscRejecting well is a skill; make it frictionless
3Next suggestionAlt/Option+]The first suggestion is often structurally wrong rather than slightly wrong
4Trigger manuallyAlt/Option+\When nothing appears and you want to know whether Copilot is working
5Separate paneCtrl+EnterComparing several candidates side by side beats cycling blind

Number three is the one most people never learn. Cycling is most valuable when the first suggestion took a fundamentally different approach from the one you wanted — iterative where you wanted recursive, broad exception handling where you wanted narrow. Alternatives frequently differ on exactly that axis, and one keystroke is cheaper than rewriting.

Cross-editor differences at a glance

If you move between editors, these are the four places the muscle memory breaks:

DifferenceWhere
Cycling uses , / . instead of [ / ]Visual Studio
Tab accepts only the first lineXcode
A documented word-by-word acceptance binding existsEclipse
Nothing is bound by defaultVim / Neovim

Everything else is consistent: Tab accepts, Esc dismisses, and Alt/Option plus a bracket cycles.

Rebinding

Every shortcut on this page can be changed.

  • VS Code — the Keyboard Shortcuts editor. Search by the command names given above, such as editor.action.inlineSuggest.showNext.
  • Visual Studio — the Keyboard Shortcuts editor, searching by command name (Edit.NextSuggestion).
  • JetBrainsSettings → Keymap, then search for Copilot.
  • EclipsePreferences → General → Keys.
  • Xcode — rebind per command in Xcode’s key bindings preferences.
  • Vim/Neovim — standard mapping; nothing is bound by default.

The one binding most worth adding yourself is toggle Copilot on/off (github.copilot.toggleCopilot in VS Code). It ships with no default, and being able to silence suggestions quickly is genuinely useful when you want to think without ghost text appearing.

This page carries print styles: navigation, the sidebar and interactive controls are removed, tables are kept intact, and link URLs are printed alongside their text. Use the Print cheat sheet button at the top of the page, or your browser’s own print command.

Sources

Every version-sensitive claim on this page was checked against first-party documentation. Only sources actually used are listed.

Primary sources