Back to articles
How Two Markdown Files Completely Changed My Visual Studio + Copilot Workflow

How Two Markdown Files Completely Changed My Visual Studio + Copilot Workflow

via Dev.to WebdevMichael Brennan

TL;DR — I added copilot-instructions.md and copilot-prompts.md to my solution root, configured Visual Studio to use them as persistent workspace context, and Copilot went from 'sometimes helpful' to 'consistently reliable teammate.' The Problem: Copilot Without Guardrails In real-world enterprise codebases, you often have a mix of legacy and modern applications, backend APIs, frontend SPAs, background services, strict conventions, and CI/CD constraints. Without persistent context, Copilot can guess API shapes, place interfaces in the wrong files, mix architectural patterns, remove code unintentionally, or ignore naming conventions. In large, long-lived systems, that creates friction and architectural drift. The Fix: Persistent Workspace Context Instead of rewriting instructions in every chat session, I created two files at the solution root: • copilot-instructions.md • copilot-prompts.md These files act as architectural guardrails, a style guide, a repeatable workflow engine, and a liv

Continue reading on Dev.to Webdev

Opens in a new tab

Read Full Article
2 views

Related Articles