How to set up VS Code so your AI assistant actually understands your project, your stack, and your standards.
It is the application where you write code. Think of it as a capable text editor that understands programming languages, shows your file tree, runs your terminal, and connects to AI tools like GitHub Copilot.
Out of the box, Copilot can see the file you have open. But it knows nothing about your project's purpose, your team's conventions, or what you are building.
Without context, Copilot gives generic answers. It does not know your stack. It guesses at your conventions. It suggests patterns that may be completely wrong for your project.
You end up rewriting its output on every request. That defeats the point.
Copilot sees nothing. Every suggestion is a guess.
GitHub Copilot automatically reads .github/copilot-instructions.md whenever you open the folder. No extra configuration needed.
Whatever you write in that file becomes Copilot's permanent context for this project. Every suggestion, every chat answer, every completion starts from this foundation.
Create the file once. Every conversation after that is smarter.
You do not need a long document. Copilot reads the whole file on every request, so short and specific beats long and vague every time.
Copilot cannot act on vague instructions. It needs concrete facts.
Once the instructions file is in place, Copilot Chat stops being generic. It knows your stack. It follows your conventions automatically, without you having to repeat them.
You stop explaining your setup at the start of every conversation. The file does that for you, on every request, forever.
customers, accounts, and branches tables, your lowercase_with_underscores naming, and your standard date helper. Want me to write it?query.sql using your conventions.The instructions file is Layer 1. As projects grow, Copilot can draw from additional context layers. Each one is opt-in - add them when you need them.
Every claim about Copilot behavior on this page links to its source in the official GitHub or Microsoft documentation. Verify anything you want to. The patterns shown here are not invented; they are what the vendors document.
Documents how .github/copilot-instructions.md is loaded automatically, the priority order with AGENTS.md and CLAUDE.md, and what content belongs in the file. Backs the entire premise of scenes 4 and 5.
Umbrella reference for every Copilot customization surface. Backs the framing in scene 7 about additional context layers (open files, chat selection, workspace index, personal instructions).
code.visualstudio.com/docs/copilot/customization/overviewReference for Copilot Chat behavior, panel keyboard shortcut, and how chat selection scoping works. Backs scene 6.
code.visualstudio.com/docs/copilot/copilot-chat