Skip to content

Latest commit

 

History

History
29 lines (26 loc) · 1.1 KB

README.md

File metadata and controls

29 lines (26 loc) · 1.1 KB

copilot-instructions

Copilot instructions to match code style Inspired by https://github.com/fielding/copilot-instructions

How to

  1. Clone the repository
  2. 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"
    }
  ],
  1. 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