Skip to main content

Asking GitHub Copilot questions in GitHub

Get instant answers about your code, repositories, and development questions — right from GitHub.

Submitting a question to Chat de Copiloto

Chat de Copiloto is available from any page on GitHub. Some questions work best in a specific context, such as a repository, issue, or pull request.

  1. En la parte superior derecha de cualquier página de GitHub, haga clic en el botón situado junto a la barra de búsqueda.

    Se muestra Chat de Copiloto.

  2. In the prompt box, type a question and press Enter.

    Some examples of general questions you could ask are:

    • What are the advantages of the Go programming language?
    • What is Agile software development?
    • What is the most popular JavaScript framework?
    • Give me some examples of regular expressions.
    • Write a bash script to output today's date.
  3. Opcionalmente, después de enviar una pregunta, puedes hacer clic en en el cuadro de texto para detener la respuesta.

  4. Within a conversation thread, you can ask follow-up questions. Copilot will answer within the context of the conversation.

Viewing an editing generated files

Nota:

This feature is currently in versión preliminar pública and subject to change.

Copilot may generate files as part of its response, which you can view, edit, and download from the side panel.

Changing and comparing AI models

You can choose from a selection of AI models, each with different strengths. Different models have different premium request multipliers, which affect your monthly usage allowance. For details, see Solicitudes en GitHub Copilot.

Si accedes a Chat de Copiloto a través de una suscripción de Copilot Business o Copilot Enterprise, tu organización o empresa debe conceder a sus miembros la capacidad de cambiar a un modelo diferente. Consulta Administración de directivas y características para GitHub Copilot en su organización o Administración de directivas y características para GitHub Copilot en su empresa.

  1. At the bottom of Chat de Copiloto, select the CURRENT-MODEL dropdown menu, then click the AI model of your choice.

After submitting a prompt, you can also regenerate a response using a different model by clicking the retry icon () below the response. You can switch between responses to compare results.

Using subthreads in a conversation

Subthreads are branches of a conversation that let you explore aspects of a topic, or new topics, all within the same thread.

To create a subthread, hover over one of your previous questions and click the button. Edit the question, then click Send. You cannot edit any attachments.

The response to your edited question is displayed in a new subthread. An edit counter appears below the question. Hover over the counter, then click or to navigate between subthreads.

Using images in Chat de Copiloto

Nota:

This feature is currently in versión preliminar pública and subject to change.

You can attach images to your prompts by pasting, dragging, or clicking in the prompt box and then selecting Upload from computer. Select a model that supports images from the model picker. For supported file types and example questions, see Proporcionar entradas visuales para GitHub Copilot.

Further reading