Code Optimizations extensions for Visual Studio and Visual Studio Code (preview)

The preview extensions available for Visual Studio and Visual Studio Code can help you generate a code fix proposal for performance issues identified in your running .NET apps.

A GitHub Copilot subscription is required to use these extensions.

Install

Install the Code Optimizations extensions via Marketplace.

Usage

Learn how to use the Code Optimizations extensions via the following how-to guides:

Sample questions

Once installed, the Code Optimizations extension (preview) introduces an agent called @code_optimizations with a few commands or "skills" that you can use in GitHub Copilot to interface with Code Optimizations issues. For example:

  • Visual Studio

    @Code_optimizations /connect <Your Application Insights resource name>
    
  • Visual Studio Code

    @Code_optimizations /connect <Your Application Insights AppID>
    

    or:

    @Code_optimizations /optimize <Your Code Optimizations GitHub Issue Number>
    

    or, select your code in the editor and ask:

    @Code_optimizations /optimize
    

Limitations

Some Code Optimization extension features are only available:

Next steps

Learn how to use: