GitHub Copilot is only as smart as the context it can see. This guide explains exactly how workspace context and codebase indexing work in VS Code — remote vs local vs basic indexes, when to use #codebase vs @workspace, how to write copilot-instructions.md for your team, and six prompt patterns that consistently produce better answers. Practical, code-first, no fluff.
