Copilot instructions to match code style Inspired by https://github.com/fielding/copilot-instructions
- Clone the repository
- in vscode, set the following in settings.json
"github.copilot.chat.experimental.codeGeneration.instructions" : [
{
"file": "/path/to/rootfolder/copilot-instructions/profiles/default/copilot-codegeneration.md"
}
],
"github.copilot.chat.experimental.codeFeedback.instructions": [
{
"file": "/path/to/rootfolder/copilot-instructions/profiles/default/copilot-codefeedback.md"
}
],
"github.copilot.chat.experimental.testGeneration.instructions": [
{
"file": "/path/to/rootfolder/copilot-instructions/profiles/default/copilot-testgeneration.md"
}
],
- Copy the content which is relevant for you to use from the language folder to the defult profile file(s)
- cat ./instructions/language/terraform/type/codegeneration/rules.md >> ./profiles/default/copilot-codegeneration.md
TODO - file needs to be placed in the same workspace as current editor, figure out how to deal with this in a scaleable fashion