Home ยป Enhanced Editing with Copilot: AI Assisted Code Corrections Amplify Clarity in Editor

Enhanced Editing with Copilot: AI Assisted Code Corrections Amplify Clarity in Editor

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.

More Reading

Post navigation

Leave a Comment

Leave a Reply

Your email address will not be published. Required fields are marked *

Quarterly Performance Report: Microsoft Cloud Surges by 23%

.NET MAUI Extension Released for Visual Studio Code with Enhanced Hot Reload Support

Integrating GitHub Copilot into Visual Studio 17.10 from Installation: A Fee Required