diff --git a/content/copilot/using-github-copilot/asking-github-copilot-questions-in-your-ide.md b/content/copilot/using-github-copilot/asking-github-copilot-questions-in-your-ide.md index 9197ed89b9fa..0005b503db9d 100644 --- a/content/copilot/using-github-copilot/asking-github-copilot-questions-in-your-ide.md +++ b/content/copilot/using-github-copilot/asking-github-copilot-questions-in-your-ide.md @@ -173,6 +173,20 @@ In addition to submitting prompts through the chat view, you can submit prompts See [inline chat](https://code.visualstudio.com/docs/copilot/copilot-chat#_inline-chat), [quick chat](https://code.visualstudio.com/docs/copilot/copilot-chat#_quick-chat), and [chat smart actions](https://code.visualstudio.com/docs/copilot/copilot-chat#_chat-smart-actions) in the {% data variables.product.prodname_vscode %} documentation for more details. +## Multi-file edits + +{% data reusables.copilot.copilot-edits-public-preview-note %} + +Use {% data variables.product.prodname_copilot_edits_vscode_short %} to make changes across multiple files directly from a single {% data variables.product.prodname_copilot_chat_short %} prompt. + +1. Enable {% data variables.product.prodname_copilot_edits_vscode_short %} in the {% data variables.product.prodname_copilot_extension_short %} settings. +1. Start an edit session by selecting **Open {% data variables.product.prodname_copilot_edits_vscode_short %}** from the {% data variables.product.prodname_copilot_chat_short %} menu. +1. Optionally, add relevant files to the _working set_ to indicate to {% data variables.product.prodname_copilot %} which files you want to work on. +1. Submit a prompt. In response to your prompt, {% data variables.product.prodname_copilot_edits_vscode_short %} determines which files in your _working set_ to change and adds a short description of the change. +1. Review the changes and **Apply** or **Discard** the edits for each file. + +For more information, see [{% data variables.product.prodname_copilot_edits_vscode_short %}](https://code.visualstudio.com/docs/copilot/copilot-edits) in the {% data variables.product.prodname_vscode %} documentation. + ## Sharing feedback To indicate whether a response was helpful, use the thumbs up and thumbs down icons that appear next to the response. diff --git a/data/reusables/copilot/copilot-edits-public-preview-note.md b/data/reusables/copilot/copilot-edits-public-preview-note.md new file mode 100644 index 000000000000..6ca1ca348adb --- /dev/null +++ b/data/reusables/copilot/copilot-edits-public-preview-note.md @@ -0,0 +1 @@ +> [!NOTE] Multi-file edit is currently in {% data variables.release-phases.public_preview %} and subject to change. diff --git a/data/variables/product.yml b/data/variables/product.yml index f37ed3458c53..61c62a268e53 100644 --- a/data/variables/product.yml +++ b/data/variables/product.yml @@ -301,6 +301,7 @@ prodname_copilot_autocomplete_pr: 'Copilot text completion' # Copilot branded GHAS features prodname_copilot_autofix: 'GitHub Copilot Autofix' prodname_copilot_autofix_short: 'Copilot Autofix' +prodname_copilot_edits_vscode_short: 'Copilot Edits' prodname_copilot_workspace_pr: 'GitHub Copilot Workspace for pull requests' prodname_copilot_workspace_pr_short: 'Copilot Workspace for PRs' prodname_copilot_workspace: 'Copilot Workspace'