GitHub Copilot prompts

10 prompts

Prompts for GitHub Copilot in your editor and on GitHub. They suit Copilot Chat and agent mode: explaining code, writing tests, reviewing a pull request or carrying out a change across several files.

1 result

  • GitHub Copilot Pull Request Description Written From the Diff

    Turns the changes in a branch into a clear pull request description: what changed and why, how to test it, risks and screenshots to add, in your repo's template if it has one.

About GitHub Copilot prompts

Where do I use these prompts in Copilot?

In Copilot Chat in VS Code, Visual Studio or a JetBrains IDE, or in agent mode for changes across files. Some also work on GitHub.com, for example when you ask Copilot about a pull request.

Can I share standing instructions with my team?

Yes. Put them in .github/copilot-instructions.md in the repository and Copilot adds them to every chat there. Keep one-off task prompts like these in the chat itself.

How do I point Copilot at the right code?

Open or select the relevant files, or reference them with # in Copilot Chat, before you paste the prompt. The blanks in each prompt name the context it needs.