Skip to main content

About GitHub Copilot Chat

Learn how you can use GitHub Copilot Chat to enhance your coding experience.

Overview

GitHub Copilot Chat is the AI-powered chat interface for GitHub Copilot. It allows you to interact with AI models to get coding assistance, explanations, and suggestions in a conversational format.

Copilot Chat can help you with a variety of coding-related tasks, like offering you code suggestions, providing natural language descriptions of a piece of code's functionality and purpose, generating unit tests for your code, and proposing fixes for bugs in your code.

GitHub Copilot Chat is available in various environments:

  • GitHub (the website).
  • A range of IDEs such as Visual Studio Code, Xcode, and JetBrains IDEs.
  • GitHub Mobile.

Different environments may have different features and capabilities, but the core functionality remains consistent across platforms. To explore the functionality available in each environment, see the Copilot Chat how-to guides and the Tutorials for GitHub Copilot.

Limitations

Copilot Chat is designed to assist with coding tasks, but you remain responsible for reviewing and validating the code it generates. It may not always produce correct or optimal solutions, and it can sometimes generate code that contains security vulnerabilities or other issues. Always test and review the code before using it in production.

Customizing Copilot Chat responses

GitHub Copilot in GitHub, Visual Studio Code, and Visual Studio can provide chat responses that are tailored to the way your team works, the tools you use, the specifics of your project, or your personal preferences, if you provide it with enough context to do so. Instead of repeating instructions in each prompt, you can create and save instructions for Copilot Chat to customize what responses you receive.

There are two types of custom instructions you can add for Copilot Chat:

  • Repository instructions: You can create a custom instructions file for a repository, so that all prompts asked in the context of the repository automatically include the instructions you've defined
  • Personal instructions: You can add personal instructions so that all the chat responses you, as a user, receive are tailored to your preferences

For more information, see Hinzufügen benutzerdefinierter Repositoryanweisungen für GitHub Copilot and Hinzufügen persönlicher, benutzerdefinierter Anweisungen für GitHub Copilot.

AI models for Copilot Chat

Du kannst das LLM ändern, mit dem Copilot Antworten auf Chatprompts generiert, einschließlich Premiummodellen mit erweiterter Funktionalität. Je nach Art der Fragen, die du stellst, kannst du feststellen, dass verschiedene Modelle besser funktionieren oder nützlichere Antworten bereitstellen. Weitere Informationen findest du unter Ändern des KI-Modells für Copilot Chat.

Extending Copilot Chat in GitHub

GitHub Copilot-Erweiterungen integrieren die Leistungsfähigkeit externer Tools in Copilot Chat, wodurch du den Kontextwechsel reduzieren und Antworten mit domänenspezifischem Kontext empfangen kannst. Du kannst Copilot-Erweiterungen aus dem GitHub Marketplace installieren oder private in deiner Organisation erstellen. Gib dann @ in einem Chatfenster ein, um eine Liste deiner verfügbaren Erweiterungen anzuzeigen. Um eine Erweiterung zu verwenden, wählen Sie die Erweiterung aus der Liste aus, oder geben Sie den vollständigen Schrägstrichnamen und dann Ihre Eingabeaufforderung ein.

Weitere Informationen findest du unter Verwenden von Erweiterungen zum Integrieren externer Tools in Copilot Chat.