Visual Studio Code has introduced a new feature called Copilot Edits, allowing users to command the artificial intelligence of GitHub Copilot to help fix code in a clear and concise manner within the editor.
Previously, VS Code supported two ways of AI-assisted code editing. The first method involved code completion suggestions in the editor window, while the second method allowed for code-related chat conversations in the chat sidebar.
Copilot Edits, the third method, combines elements from the previous two approaches. Users can now drag files into the chat window and command the AI to make code edits as needed. Subsequently, the editor will present suggestions on how to fix the code before users can choose to accept or discard the changes.
The VS Code development team emphasizes user control over code changes by introducing the Working Sets feature. This feature allows users to specify which files they want to edit, coupled with prompts on how to make the edits. The AI will only make changes to the specified files unless it suggests adding a new file.
The models used for code suggestions are varied, including GPT-4o, o1-preview, o1-mini, Claude 3.5 Sonnet, and Gemini 1.5 Pro. This feature is currently available for GitHub Copilot users to preview.
TLDR: Visual Studio Code introduces Copilot Edits feature, combining AI code assistance methods for precise and controlled code editing in the editor.
Leave a Comment