A simple guide to customizing Copilot's behavior via instruction files.
This project provides a way to enhance and tailor GitHub Copilot's code generation by adding custom instruction files to your projects or globally in your VS Code environment.
- Create a
.github/instructions
directory in your project (if it doesn't exist). - Copy all
*.instructions.md
files you want Copilot to use into this directory. - Ensure the VS Code setting ⚙
chat.codeGeneration.useInstructionFiles
is enabled.
- Download this project.
- Add the path to the downloaded project in your VS Code settings under ⚙
chat.instructionsFilesLocations
.
- Copilot will automatically read and apply the instruction files from your specified locations.
- VS Code with Copilot extension installed
- The required settings enabled as described above
Enhance your coding experience by guiding Copilot with your own instructions!