News

Copilot AI Gets Smarter, More Secure in Visual Studio Previews

Microsoft's Visual Studio 2022 dev team has been focusing on the AI-powered GitHub Copilot coding assistant as it ramps up the next major release, v17.11.

After the recent Preview 1, which the company said is all about "quality of life," the company published a Preview 2 and Preview 3, the latter just out today (July 9).

As the release notes show, much attention has been paid to Copilot, which debuted in 2021 as a technical preview for Visual Studio Code and basically kicked off the current generative AI craze.

Here's a rundown of what's new for the "AI pair programmer" in the most recent two previews:

  • Understand symbols: The tool helps devs understand symbols at different invocations without a code base, being now integrated into the tooltip on hover over symbols to provide AI-generated summaries of the selected symbol. This animated GIF, for example, shows a dev hovering over a symbol to get a summary of the symbol's definition and usage and then asking the tool to "tell me more" to see generated documentation for the selected symbol:
    Understand Your Symbols with GitHub Copilot in Animated Action
    [Click on image for larger, animated GIF view.] Understand Your Symbols with GitHub Copilot in Animated Action (source: Microsoft).
  • Getting smarter: It now includes context from an entire repository and can search the web, as GitHub Copilot Enterprise subscribers in Visual Studio can now use GitHub Copilot Chat to get answers enriched with context from their repo and Bing search results.
  • More secure: GitHub Copilot Business and Enterprise customers can prevent specified files or repositories from being used to inform code completion suggestions made by the tool, with GitHub Copilot Content Exclusion used to prevent unwanted sources from being used.
  • Refine suggestions: Two items of note:
    • Refine Completions with Inline Chat: GitHub Copilot now allows devs to have more control over its suggestions. Instead of just accepting or ignoring a suggestion, devs can retry and modify it. This feature lets users curate the proactive suggestions by adding context or tweaking the completions.
    • Promote Inline Chat to the Chat Window: Devs can promote their inline chat to the chat window, preserving the conversation history. This lets them continue the chat on a larger screen at their convenience.

    Devs can select "Continue in chat window" to explore these features further.

  • Naming things made easy: Devs can use GitHub Copilot to generate naming suggestions for identifiers in C++, specifically suggesting names for identifiers (variables, methods, or classes) based on how the identifier is being used and the style of code.
  • AI-generated breakpoint expressions: Also in C++, dev can use AI-generated expressions to insert conditional breakpoints or tracepoints. GitHub Copilot analyzes code and offers insightful breakpoint expressions, streamlining the debugging process.

Outside of the AI space, Microsoft highlighted many other tweaks, enhancements and new features in the most recent two previews affecting:

About the Author

David Ramel is an editor and writer at Converge 360.

comments powered by Disqus

Featured

  • Compare New GitHub Copilot Free Plan for Visual Studio/VS Code to Paid Plans

    The free plan restricts the number of completions, chat requests and access to AI models, being suitable for occasional users and small projects.

  • Diving Deep into .NET MAUI

    Ever since someone figured out that fiddling bits results in source code, developers have sought one codebase for all types of apps on all platforms, with Microsoft's latest attempt to further that effort being .NET MAUI.

  • Copilot AI Boosts Abound in New VS Code v1.96

    Microsoft improved on its new "Copilot Edit" functionality in the latest release of Visual Studio Code, v1.96, its open-source based code editor that has become the most popular in the world according to many surveys.

  • AdaBoost Regression Using C#

    Dr. James McCaffrey from Microsoft Research presents a complete end-to-end demonstration of the AdaBoost.R2 algorithm for regression problems (where the goal is to predict a single numeric value). The implementation follows the original source research paper closely, so you can use it as a guide for customization for specific scenarios.

  • Versioning and Documenting ASP.NET Core Services

    Building an API with ASP.NET Core is only half the job. If your API is going to live more than one release cycle, you're going to need to version it. If you have other people building clients for it, you're going to need to document it.

Subscribe on YouTube