Install the extension
- Open View → Extensions (or press
Ctrl+Shift+X/Cmd+Shift+X). - Search for “GitHub” and locate GitHub Copilot.
- Click Install. After installation the extension will prompt you to sign in to GitHub via your browser if you haven’t already authenticated.
About GitHub Copilot Chat
When you install GitHub Copilot, the “GitHub Copilot Chat” extension is often added alongside it. Open the Copilot Chat panel from the status area (lower-right). Unlike a standard web chat, Copilot Chat can read the files in your workspace to provide context-aware suggestions—this makes generated code, refactors, and explanations more relevant to the project you’re editing.GitHub Copilot Chat can read files in your workspace to provide context-aware suggestions and to help with code generation, refactors, and explanations.

Settings overview
GitHub Copilot exposes several settings inside VS Code. Review these areas to tailor Copilot to your workflow:
Common Copilot settings examples
- Enable Copilot for all files except a few types:
- In Settings JSON:
"{ \"*\": true, \"plaintext\": false, \"markdown\": false }"
- In Settings JSON:
- Disable inline completions temporarily via the Copilot menu or Settings.
Experimental or preview features can add capabilities but may be unstable. Enable preview features only if you want to test new behavior and accept potential instability.
Tips on language-specific settings
- YAML: Copilot often generates helpful YAML for CI/CD and configuration files, but it can also produce irrelevant suggestions. Toggle Copilot for YAML per project if it becomes noisy.
- Experimental features: Enable preview features selectively when you want to try new capabilities, but be aware they can change frequently.
Workspace instructions via settings.json
You can provide project-specific instructions that Copilot Chat will consult during code generation. Add these to your workspacesettings.json to encode style or domain-specific guidance:
Example code context (Flask)
Copilot is most useful when it can read and reason about your existing project files. Below is a small, corrected Flask example that Copilot can use as context to suggest completions or new routes:Next steps
Once Copilot and Copilot Chat are installed and configured:- Try inline completions while editing real files to see contextual suggestions.
- Use the Copilot Chat pane to ask for code generation, explanations, or refactors—because the chat can read your workspace, answers are tailored to your codebase.
- Iterate on your workspace
settings.jsoninstructions to bake in repository conventions (naming, formatting, commit messages).