Rules of the RoadThis repository contains instructions for configuring Copilot Agent mode to work with the rules set down in the Cvent Paved Road. Copilot InstructionsCopilot supports a feature called "instructions" that allows you to provide specific guidelines for how it should generate code. This can be particularly useful for ensuring that the generated code adheres to your project's coding standards and best practices. Configuring Copilot InstructionsCopilot instructions are configured in the
It is important to ensure that instructions are short and precise. Poor instructions can degrade Copilot's effectiveness. Instruction TypesThere are five main types of instructions you can configure:
Code Generation InstructionsInstructions that will be added to Copilot requests that generate code. This affects inline coding suggestions, chat completions, and code generation requests in both edit and agent modes. Example:
Code Review InstructionsInstructions provided to Copilot when reviewing code. This can be used to enforce coding standards, best practices, and is considered either when reviewing a selection, file, or an entire pull request. Example:
Commit Message Generation InstructionsInstructions provided to Copilot when generating commit messages. Example:
Pull Request Description InstructionsInstructions provided to Copilot when generating pull request descriptions. Example:
Test Generation InstructionsInstructions provided to Copilot when generating tests. Example:
|