GitHub Copilot Edits (Preview) in Visual Studio 2022 combines the conversational flow of chat and an inline review experience to help you iterate across your codebase with more control and efficiency.
💡 Here’s how Copilot Edits helps with iterating across multiple files:
- Preview with clarity: Review a clear summary that highlights affected files and proposed changes.
- Review with flow: View code diffs inline, directly in your editor. Either the TAB key to accept and Alt+Del keys to reject individual changes, or apply/dismiss all at once.
- Iterate with confidence: Use checkpoints to revisit earlier iterations of a code file or try an alternative approach anytime for novel ideas.
Available in Visual Studio 2022 Preview
- Copilot Edits is available in versions 17.13 Preview 3 and later of Visual Studio 2022.
- To use Copilot Edits, sign in to Visual Studio 2022 with a GitHub account that has access to Copilot, now available to all users with Copilot Free.
Get started with GitHub Copilot Edits in Visual Studio
- Start an Edits thread: In the Copilot Chat window, click the Edits thread button (a “+” symbol with a pencil icon).
- Describe your changes: Use natural language to describe your edits, just as you would in Copilot Chat.
- Specify context or let Copilot discover:Â Copilot Edits will automatically consider your current file, open files, or search for related files across your codebase. You can also specify context using # commands like #errors, #file, #solution.
For more details on how to use Copilot Edits, visit our documentation.
We appreciate your feedback
Your feedback is invaluable for helping us improve Copilot Edits – please share with us on the Developer Community ticket for Copilot Edits or the Send Feedback button in Visual Studio.