Referencing multiple Instruction MDs conditionally. #162201
-
Select Topic AreaQuestion Copilot Feature AreaCopilot Agent Mode BodyThe How can I achieve this? I am aware about changing settings.json file and adding all the separated md files in codeGeneration settings, but that will make all the files to be referenced everytime. Also, is it a good idea to separate out the |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
|
Hi @aditya-css , You can do your research in this page ( https://docs.github.com/en/copilot/customizing-copilot/adding-repository-custom-instructions-for-github-copilot?tool=vscode ). They explained it clearly and It helps your problem. |
Beta Was this translation helpful? Give feedback.
-
|
Hey @ahmetkutay , |
Beta Was this translation helpful? Give feedback.
-
|
Here's what I did at the end. Split the main copilot-instructions.md file into multiple *.instructions.md files and place those in an instructions folder. Now I add a reference to particular file this way: For Xyz details, refer [Xyz instruction file] (instructions/xyz.instructions.md). |
Beta Was this translation helpful? Give feedback.
Here's what I did at the end. Split the main copilot-instructions.md file into multiple *.instructions.md files and place those in an instructions folder. Now I add a reference to particular file this way: For Xyz details, refer [Xyz instruction file] (instructions/xyz.instructions.md).