How to use GitHub Copilot Chat in VS Code
In Visual Studio Code with GitHub Copilot (verified 2026-10-24), sign in to GitHub, open Chat (Ctrl+Alt+I / ⌘+Alt+I) or Inline Chat (Ctrl+I / ⌘+I), ask to explain, fix, test or refactor the current file/selection, then review and Apply edits. Keep prompts specific (file, error, constraint) and never paste secrets into chat.
Copilot Chat needs an active Copilot plan and the Copilot Chat/extension pieces enabled in VS Code. Organization policies can block Chat even when inline completions still work.
Applies to VS Code on desktop with a GitHub account that has Copilot access. JetBrains/Visual Studio also have Copilot Chat UIs with different shortcuts — this guide is VS Code-first.
Open Copilot Chat and apply a change
Set up Copilot in VS Code
- Install/enable the GitHub Copilot and Copilot Chat extensions if prompted.
- Sign in to GitHub from VS Code and confirm Copilot is active for your account.
- Open the repo folder you want Chat to reason about.
Ask in Chat or Inline Chat
- Open the Chat view (Ctrl+Alt+I / ⌘+Alt+I) for multi-turn help.
- Or select code and press Ctrl+I / ⌘+I for Inline Chat next to the editor.
- Describe the goal (explain this function, add tests, fix this TypeError).
Review and apply
- Read the proposed diff or answer; ask follow-ups to tighten scope.
- Apply accepted edits, then run your tests/linters.
- If Chat cannot see a file, @-mention or open it so context is attached (per your Copilot/VS Code version).
Our take: Chat for “why/how”, completions for typing flow
Use Chat when you need an explanation or a multi-hunk edit; keep Tab-completions for small boilerplate.
If it fails
- Chat missing: Copilot plan inactive, extension disabled, or org policy blocks Chat.
- Wrong answers: give the error text + file path; avoid huge unrelated folders in the workspace.
- Secret risk: never paste API keys/tokens into prompts.
- Need agent-style multi-file work: use the current Copilot agent/edits mode your VS Code build offers, still review every diff.
Frequently asked questions
What is GitHub Copilot Chat?
A chat interface (and inline chat) that uses GitHub Copilot to answer coding questions and propose edits inside your IDE.
How do I open Copilot Chat in VS Code?
Ctrl+Alt+I (Windows/Linux) or ⌘+Alt+I (Mac), or use the Chat icon/menu after signing in with Copilot.
Chat vs inline completions?
Completions suggest as you type; Chat is a conversational panel/inline session for explain/fix/refactor tasks.
Do I need a paid Copilot plan?
Yes — Copilot Chat requires eligible Copilot access; check your GitHub Copilot subscription and org settings.
Does Copilot Chat work offline?
No — it needs network access to Copilot services.