r/GithubCopilot • • 20d ago

Help/Doubt ❓ VS Code Forgot copilot-instructions.md

Just recently The prompt seems to have forgotten where the .github/ copilot-instructions.md file was. Has anybody seen this? Maybe it just temporary lost its mind.

It was only running some of the checks I requested and not the entire instructions. Is there a best practice for telling it where these files are located? I thought it was supposed to know this automatically since it's the one that told me this.

3 Upvotes

11 comments sorted by

View all comments

3

u/ShelLuser42 20d ago

It was only running some of the checks I requested and not the entire instructions.

If it was running some of those then how did you conclude that it didn't find the file at all?

Alas, there are several settings which can apply here (for example github.copilot.chat.codeGeneration.useInstructionFiles), but as long as you never touched these then I'd try to verify the instruction file itself.

Too many or contradicting instructions can also negatively affect things. It sounds silly, but why not tell Copilot to check the instructions file and look for problems and/or possible optimizable aspects?

1

u/ADDSquirell69 20d ago

Thx. I will.