From 166f36f1ca27094d2df63d6518e62c02a9cd04f1 Mon Sep 17 00:00:00 2001 From: Tim Rogers Date: Mon, 10 Nov 2025 07:26:18 +0000 Subject: [PATCH] Refresh documentation for Copilot coding agent in VS Code (#58191) Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Co-authored-by: Sophie <29382425+sophietheking@users.noreply.github.com> --- .../use-copilot-agents/coding-agent/create-a-pr.md | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/content/copilot/how-tos/use-copilot-agents/coding-agent/create-a-pr.md b/content/copilot/how-tos/use-copilot-agents/coding-agent/create-a-pr.md index a72eca21a263..4b3d73ed1951 100644 --- a/content/copilot/how-tos/use-copilot-agents/coding-agent/create-a-pr.md +++ b/content/copilot/how-tos/use-copilot-agents/coding-agent/create-a-pr.md @@ -272,20 +272,18 @@ You can ask {% data variables.product.prodname_copilot_short %} to open a pull r 1. Install the [{% data variables.product.github %} Pull Requests extension](https://marketplace.visualstudio.com/items?itemName=GitHub.vscode-pull-request-github) for {% data variables.product.prodname_vscode %}. 1. Open {% data variables.copilot.copilot_chat %} in {% data variables.product.prodname_vscode %}. -1. Type a prompt explaining what you want {% data variables.product.prodname_copilot_short %} to do, and add `#copilotCodingAgent` to the prompt. +1. Type a prompt explaining what you want {% data variables.product.prodname_copilot_short %} to do. - For example, `Put backticks around file names and variables in output #copilotCodingAgent` + For example, `Put backticks around file names and variables in output` > [!TIP] - > * To help {% data variables.product.prodname_copilot_short %}, you can select the relevant line(s) of code before submitting your prompt. + > To help {% data variables.product.prodname_copilot_short %}, you can select the relevant line(s) of code before submitting your prompt. -1. Submit your prompt. +1. Submit your prompt by clicking the **Delegate this task to the GitHub Copilot coding agent** button, next to the **Send** button - {% data variables.product.prodname_copilot_short %} will typically do some research and context-gathering in {% data variables.product.prodname_vscode %}, and then will ask you to confirm that you want to use the coding agent to create a pull request. +1. If you have local changes, a dialog will be displayed asking if you want to push those changes so {% data variables.product.prodname_copilot_short %} can start from your current state. Click **Include changes** to push your changes, or **Ignore changes** to ask {% data variables.product.prodname_copilot_short %} to start its work from your repository's default branch. -1. Click **Continue**. - - {% data variables.product.prodname_copilot_short %} will push up any local changes, start a new session and respond with a link to the pull request it creates. It will work on the task and push changes to the pull request, and then add you as a reviewer when it has finished, triggering a notification. + {% data variables.product.prodname_copilot_short %} will start a new session and respond with a link to the pull request it creates. It will work on the task and push changes to the pull request, and then add you as a reviewer when it has finished, triggering a notification. ## Asking {% data variables.product.prodname_copilot_short %} to create a pull request from {% data variables.copilot.copilot_chat_short %} in JetBrains IDEs