GitHub Copilot Keyboard Shortcuts
Keyboard shortcuts for GitHub Copilot in Visual Studio Code on MacWindowsLinux. Looking for Microsoft's consumer chatbot instead? See Microsoft Copilot shortcuts.
Code Completions (Inline Suggestions)
| Action | Shortcut |
|---|---|
| Accept the whole suggestion | TabTabTab |
| Accept the next word only | CmdRightCtrlRightCtrlRight |
| Dismiss the suggestion | EscapeEscapeEscape |
| Show next suggestion | Option]Alt]Alt] |
| Show previous suggestion | Option[Alt[Alt[ |
| Trigger a suggestion manually | Option\Alt\Alt\ |
Copilot Chat
| Action | Shortcut |
|---|---|
| Open the Copilot Chat view | CtrlCmdICtrlAltICtrlAltI |
| Start inline chat in the editor | CmdICtrlICtrlI |
| Open Quick Chat | ShiftOptionCmdLCtrlShiftAltLCtrlShiftAltL |
| Start a new chat session | CmdNCtrlNCtrlN |
| Show the model picker | OptionCmd.CtrlAlt.CtrlAlt. |
| Switch to agent mode | ShiftCmdICtrlShiftICtrlShiftAltI |
Editor AI Actions
| Action | Shortcut |
|---|---|
| Rename symbol with AI-suggested names | F2F2F2 |
| Start voice chat (hold to talk) | CmdICtrlICtrlI |
| Open the Keyboard Shortcuts editor (to rebind) | CmdKCmdSCtrlKCtrlSCtrlKCtrlS |
No shortcuts found. Try a different search term.
Frequently Asked Questions
Is GitHub Copilot the same as Microsoft Copilot?
No. GitHub Copilot is the AI pair-programmer built into Visual Studio Code and other IDEs — code completions, Copilot Chat, and agent mode. Microsoft Copilot is the consumer AI chat assistant (web, Windows, and Microsoft 365). They share the Copilot name but are different products with different shortcuts. See our separate Microsoft Copilot shortcuts page for the chatbot.
How do I accept a GitHub Copilot suggestion?
Press Tab to accept the whole grey inline suggestion. To accept just the next word, press Cmd+Right on Mac or Ctrl+Right on Windows/Linux. Press Escape to dismiss a suggestion you don't want.
How do I open Copilot Chat in VS Code?
Ctrl+Alt+I on Windows/Linux, or Ctrl+Cmd+I on Mac, opens the Copilot Chat view. To chat right inside the editor, use inline chat with Cmd+I (Ctrl+I on Windows/Linux). Quick Chat is Ctrl+Shift+Alt+L on Windows/Linux, or Shift+Option+Cmd+L on Mac.
How do I switch GitHub Copilot to agent mode?
From the Chat view, press Cmd+Shift+I on Mac, Ctrl+Shift+I on Windows, or Ctrl+Shift+Alt+I on Linux to jump to agent mode. You can also pick Ask, Edit, or Agent from the mode dropdown at the bottom of the chat input.
How do I cycle through Copilot suggestions?
When a suggestion is showing, press Option+] (Alt+] on Windows/Linux) for the next suggestion and Option+[ (Alt+[) for the previous one. Alt+\ (Option+\ on Mac) triggers a suggestion manually if none is showing.
Can I change GitHub Copilot keyboard shortcuts?
Yes. Every Copilot action is a standard VS Code command, so you can rebind any of them in the Keyboard Shortcuts editor (Cmd+K Cmd+S on Mac, Ctrl+K Ctrl+S on Windows/Linux) — search for the command name and assign your own key.