All Shortcuts

GitHub Copilot Keyboard Shortcuts — Complete Cheat Sheet (14 Shortcuts)

Essential GitHub Copilot keyboard shortcuts for VS Code. Learn how to accept, dismiss, and cycle through AI code suggestions, use inline chat, and maximize your coding productivity with Copilot.

GitHub Copilot lives inside an editor, and this table is its VS Code surface: the completion keys, the chat entry points with their slash commands and context references, and the accept-or-reject keys for multi-file edits. JetBrains and Visual Studio host the same features on different keys. On macOS read Cmd for Ctrl and Option for Alt.

Related Shortcut Pages

ChatGPT OpenAI Codex CLI OpenClaw Claude Code Gemini Midjourney

Search all GitHub Copilot shortcuts interactively

Open Interactive Shortcut Finder

All GitHub Copilot Shortcuts

AI Code Completion

ShortcutActionDescription
TabAccept SuggestionAccept Copilot's code suggestion.
EscDismiss SuggestionDismiss Copilot suggestion.
Alt + ]Next SuggestionView next alternative Copilot suggestion.
Alt + [Previous SuggestionView previous alternative Copilot suggestion.
Ctrl + EnterOpen Suggestions ListView 10 Copilot suggestions in a new tab.
Alt + \Manual TriggerManually trigger Copilot when autocomplete doesn't appear.
Ctrl + RightAccept Word by WordPartially accept suggestion word by word.

Copilot Chat

ShortcutActionDescription
Ctrl + Shift + IOpen Copilot ChatOpen the Copilot Chat panel.
Ctrl + IInline ChatOpen inline Copilot Chat in the editor.
/explainExplain CodeRequest explanation of selected code.
/fixFix CodeFix issues in selected code.
/testsGenerate TestsGenerate tests for selected code.
/docGenerate DocsGenerate documentation for selected code.
@workspaceWorkspace ContextAsk questions with entire project as context.
#fileFile ReferenceAdd a specific file as context.
#selectionSelection ReferenceAdd currently selected code as context.

Copilot Edits

ShortcutActionDescription
Ctrl + Shift + EnterAccept EditAccept Copilot's suggested edit.
Ctrl + BackspaceReject EditReject Copilot's suggested edit.
Ctrl + Shift + Alt + EnterAccept All EditsAccept all Copilot edits across all files.
📜 Source: GitHub Docs — Copilot keyboard shortcuts. VS Code bindings from GitHub Docs; slash commands and references from the Copilot Chat reference. Checked 2026-09-06. How we verify ›

Frequently Asked Questions

📄 View Printable Cheat Sheet — Download as PDF or print · 🧩 Combine with other tools

How do I accept a GitHub Copilot suggestion?

Press Tab to accept the full suggestion, or Ctrl+Right Arrow to accept word by word.

How do I open Copilot inline chat?

Press Ctrl+I (Cmd+I on Mac) to open inline chat for contextual code editing.

How do I dismiss a Copilot suggestion?

Press Esc to dismiss the current suggestion.

How do I cycle through Copilot suggestions?

Press Alt+] for the next suggestion and Alt+[ for the previous one.

How do I open the Copilot chat panel in VS Code?

Press Ctrl+Shift+I (Cmd+Shift+I on Mac) to open the Copilot chat panel.

Can I combine GitHub Copilot shortcuts with other tools?

Yes — use My Stack to combine GitHub Copilot shortcuts with any other platform on this site into one printable reference, which is useful if your daily workflow spans several tools.

Browse shortcuts for 268 platforms

Explore All Platforms Practice Shortcuts
🔧 Spotted an error or a missing shortcut? Suggest an edit on GitHub — every accepted fix goes live on this page, the API and the CLI.

Completions

Ghost text appears as you type; Tab accepts it and Esc dismisses it. When the first suggestion is half right, Ctrl + Right accepts one word at a time, and the alternatives are reachable with Alt + ] (next) and Alt + [ (previous). Ctrl + Enter opens a panel with up to ten full suggestions side by side, and Alt + \ asks for a suggestion when none appeared — the key to press after a comment describing what the next function should do.

Chat and its vocabulary

Ctrl + Shift + I opens the Chat view and Ctrl + I opens inline chat where the cursor is, for a change that stays within the surrounding code. Inside either, the slash commands set intent: /explain, /fix, /tests and /doc apply to the selection or the current file. Context is added with references: @workspace lets Copilot search the whole project, #file attaches a specific file and #selection the highlighted code. Being explicit with these produces measurably better answers than a bare question.

Edits across files

Copilot Edits (the agent mode) proposes changes to several files and shows each as a diff. Ctrl + Shift + Enter accepts the edit under review and Ctrl + Backspace rejects it; Ctrl + Shift + Alt + Enter accepts everything when you have read it all. Review before accepting — the diffs are applied to the working tree, and git is the only undo beyond the editor's.

🤖 Ask AI about GitHub Copilot shortcuts

Open your assistant with this page preloaded as the source — great for follow-up questions like "which of these work in other apps?"

ChatGPT Claude Perplexity Gemini Grok