GUIDE
Why is GitHub Copilot ignoring my instructions?
Last updated 2026-11-25
Usually Copilot is not ignoring you on purpose. Your instructions were not sent, were buried under a lot of other context, or conflict with something else in the request.
Common reasons
- The instructions file was not included. Check the references listed under a Copilot reply to see whether .github/copilot-instructions.md was used, and check that instruction files are enabled in your Copilot settings.
- A scoped .instructions.md file has an applyTo pattern that does not match the files you are working on.
- The instructions are long, so the important rules are lost among many others.
- Long chats and agent runs fill the context with files, logs and earlier turns, and the model weighs your rules less.
- Two instructions conflict, for example a repo file and a personal instruction, or a rule and an explicit request in your prompt.
- The rule is vague. "Write clean code" is easy to ignore. "Use async/await, never .then()" is not.
How to make Copilot follow instructions
- Keep the instructions file short and put the most important rules first.
- Write rules as specific, checkable statements.
- Start a new chat for a new task so old context does not crowd out the rules.
- Repeat a critical rule in the prompt for that one task.
- Check what was actually sent. The Chat Debug view in VS Code shows the requests behind a chat. VacuumPrompts shows each Copilot request split into parts (instructions, history, files, logs and your prompt), so you can see whether your rules were included and how much else came with them.
Frequently asked questions
How do I know if Copilot used my instructions file?
Look at the references shown with the reply. If copilot-instructions.md is not listed, it was not used for that request. VacuumPrompts also shows the instructions part of each captured request.
Why does Copilot forget instructions in long chats?
Every turn adds more history, files and output to the request, so your rules become a smaller part of it. Start a new chat per task.
Does a longer instructions file help?
Usually not. It is sent with every request and costs tokens each time, and important rules get lost. Short and specific works better.
Download VacuumPrompts free for Windows