Skip to main content

GitHub Copilot Chat Cookbook

Find examples of prompts to use with GitHub Copilot Chat.

Spotlight

Generating unit tests

Generating unit tests

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

    Improving code readability and maintainability

    Copilot Chat can suggest ways to make your code easier to understand and maintain.
      Debugging invalid JSON

      Debugging invalid JSON

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

        Explore 27 prompt articles