News

Visual Studio Copilot Improves Feature Search, Shortcuts, Slash Commands

Microsoft's Visual Studio dev team has been working on the next release of its flagship IDE, Visual Studio 2022 v17.13, with an emphasis on improving the GitHub Copilot AI-powered coding assistant.

After shipping v17.12 last November, the team has shipped three previews, the latest being last week.

The big news for the next release is already known: a free GitHub Copilot. "We're excited to announce an all new free plan for GitHub Copilot, available for everyone today in Visual Studio. All you need is a GitHub account. No trial. No subscription. No credit card," the company said.

Here's a summary of what else is new for Copilot in the preview release notes:

AI-Enhanced Feature Search
You can now ask GitHub Copilot to get detailed responses for your queries.

Copilot Edits
[Click on image for larger view.] Copilot Feature Search (source: Microsoft).

GitHub Copilot now offers detailed responses for queries within Visual Studio through Feature Search. If you're unsure about a menu item, command, or feature name, you can use the "Ask Copilot" button in Feature Search to send your query to Copilot Chat. It interprets the semantic meaning of your query, considers your Visual Studio version, and provides accurate, context-aware answers without leaving the IDE. This integration improves your workflow by offering immediate assistance, such as identifying and explaining settings like "format document" when searching for terms like "prettify file."

GitHub Copilot Shortcuts
New keyboard shortcuts for threads in GitHub Copilot Chat.

GitHub Copilot Chat now includes new keyboard shortcuts for navigating threads:

  • Ctrl+N: Start a new thread
  • Ctrl+PgDown: Move to the previous thread (cycles past the first thread)
  • Ctrl+PgUp: Move to the next thread (cycles past the last thread)
  • Ctrl+Shift+T: Expand and focus the thread drop-down

These shortcuts work only when the Copilot Chat pane is active and can be customized in Visual Studio's Keybinding dialog.

Slash Command Expansions
Enhance slash commands by expanding into natural language.

Slash commands have been enhanced to expand into natural language as users type, incorporating active context and displaying it in the prompt. This improvement provides users with:

  • A clearer understanding of what the command will do.
  • Insight into the context the command will use.
  • The option to modify the prompt before sending it.

Use GitHub Copilot Edits Across Files
Iterate across multiple files more efficiently.

Copilot Edits
[Click on image for larger view.] Copilot Edits (source: Microsoft).

Copilot Edits streamline iteration across multiple files. This feature combines chat's conversational flow with an inline review experience, enabling developers to:

  • Preview with clarity: View a summary of affected files and proposed changes.
  • Review with flo: See code diffs inline, accept/reject changes individually using TAB or Alt+Del, or apply/dismiss all changes at once.
  • Iterate with confidence: Use checkpoints to revisit earlier file versions or explore alternative approaches.

To start, describe your desired changes in natural language and reference files, errors, or solutions using the "#" key, just like in Copilot Chat.

About the Author

David Ramel is an editor and writer at Converge 360.

comments powered by Disqus

Featured

  • Cloud-Focused .NET Aspire 9.1 Released

    Along with .NET 10 Preview 1, Microsoft released.NET Aspire 9.1, the latest update to its opinionated, cloud-ready stack for building resilient, observable, and configurable cloud-native applications with .NET.

  • Microsoft Ships First .NET 10 Preview

    Microsoft shipped .NET 10 Preview 1, introducing a raft of improvements and fixes across performance, libraries, and the developer experience.

  • C# Dev Kit Previews .NET Aspire Orchestration

    Microsoft's dev team has been busy updating the C# Dev Kit, a Visual Studio Code extension that enhances the C# development experience by providing tools for managing, debugging, and editing C# projects.

  • Hands On: New VS Code Insiders Build Creates Web Page from Image in Seconds

    New Vision support with GitHub Copilot in the latest Visual Studio Code Insiders build takes a user-supplied mockup image and creates a web page from it in seconds, handling all the HTML and CSS.

  • Naive Bayes Regression Using C#

    Dr. James McCaffrey from Microsoft Research presents a complete end-to-end demonstration of the naive Bayes regression technique, where the goal is to predict a single numeric value. Compared to other machine learning regression techniques, naive Bayes regression is usually less accurate, but is simple, easy to implement and customize, works on both large and small datasets, is highly interpretable, and doesn't require tuning any hyperparameters.

Subscribe on YouTube

Upcoming Training Events