Location>code7788 >text

VS2022 17.12.0 Preview2 release enhancements to Copilot

Popularity:768 ℃/2024-09-11 14:56:08

Prerequisite, use the latest version of17.12.0 Preview2and have an active Copilot AI subscription, then you can experience these new and exciting features!

Enhanced Copilot AI's Editable Expressions for IEnumerable Visualizer

image

image

We can realize some complex conditional screening through AI, and can instantly verify that the results are as expected, providing great convenience for development and debugging!

Provide informational help for unit test validation failures

When a unit test fails, you can ask the AI why it failed, and the AI will suggest appropriate breakpoints.
When it encounters a breakpoint, Copilot provides a comparison between the value of the monitored variable and the expected value.
If there is more than one validation error, you can continue to ask questions until you find a satisfactory solution!

image

Provides basic analysis of variables during debugging

When you are interested in a particular variable, you can simply click Ask AI to get first-hand information about the variable, suggestions for fixing it, and the call chain.

image