Install GitHub Copilot and Copilot Chat
- Open the Extensions view (View → Extensions or press Ctrl+Shift+X / Cmd+Shift+X).
- Search for “GitHub”. From the results, install:
- GitHub Copilot — the core completion engine.
- GitHub Copilot Chat — the in-editor chat interface that understands your open files.
Copilot Chat is more useful for code-specific questions than a generic web chat because it can reference the files you have open. Use chat for higher-level refactoring, explanations, or multi-file changes, and inline completions for quick, local suggestions.

Copilot settings — where to find them and what to tweak
Open Settings (File → Preferences → Settings or press Ctrl+, / Cmd+,) and search for “Copilot”. Below are the most useful options to review and tune.
Experimental features can offer useful capabilities but may be unstable or change without notice. Only enable these in non-critical environments, or be prepared for behavior to differ between releases.
Add workspace (in-repo) instructions for code generation
You can add instructions inside your repository so Copilot Chat respects project conventions and file-specific guidance. Place an array of instruction objects under thegithub.copilot.chat.codeGeneration.instructions key in your workspace settings (e.g., .vscode/settings.json).
Example instruction objects:
settings.json entry:
How Copilot leverages your code context
When Copilot and Copilot Chat are installed and you have files open in the editor, the assistant uses that context to produce more relevant suggestions. For example, if your project contains a Flask app, Copilot can suggest handler code that matches existing data structures and patterns:- Quickly accept small completions while coding.
- Ask Copilot Chat for explanations, multi-file refactors, or larger changes that need project-wide awareness.
Next steps and references
- Try toggling inline completions while experimenting to find a workflow that fits your editing style.
- Add repository-specific instructions for consistent generated code across your team.
- Use Copilot Chat for context-aware code reviews, refactors, and explanations.