Skip to main content

Example prompts for GitHub Copilot Chat

Find examples of prompts to use with GitHub Copilot Chat.

Spotlight

Generate unit tests

Generate unit tests

Copilot Chat can help with generating unit tests for a function.
Improving code readability and maintainability

Improving code readability and maintainability

Learn how to improve your code readability and maintainability.
Debugging invalid JSON

Debugging invalid JSON

Copilot can identify and resolve syntax errors or structural issues in JSON data.

Explore 16 prompt articles