Visual Studio 2022 17.1 Preview 2 is now available with Git, C ++, and .NET enhancements
Visual Studio 2022 became generally available in November 2021, and Microsoft obviously intends to add more features to it after its initial release. Today, some of them arrived in the form of Visual Studio 2022 17.1 Preview 2 and there are tons of improvements to be aware of if you’re a developer keen to try out the latest features in Microsoft’s Integrated Development Environment (IDE).
With the latest preview version, it’s easier to compare the current Git branch with other branches in a side-by-side view. There is improved detached head support where you can check out a commit and go to an older point in your repository and run that as well. Draw requests and team updates can now be reviewed relatively more quickly as well. Support for multiple repositories is also improved, and the IDE is now flexible for thin branch management operations. In the same vein, new branches can be created automatically on all active repositories, you don’t need to create them manually for each one. Finally, Line-staging is now in preview and allows developers to stage pieces of their code.
In terms of code management, code cleanups on explicit backup operations can now be automated using custom cleanup profiles. Another feature introduced in this area allows Visual Studio to automatically save code when the window loses focus. These automatic save points will not trigger an automatic code cleanup. That said, Microsoft did point out that this feature is still previewing and that the company welcomes comments on the matter.
To come to .NET productivity improvements, you can hover your cursor over a target symbol and then press F12 to quickly jump to the source file. There is also a new Stack Trace Explorer window that you can use to access associated code. The naming styles have also been changed in the EditorConfig user interface. These allow naming conventions to be applied for your team that clones the repository.
Embedded developers using C ++ in Visual Studio will be pleased to know that there are now more supported views that allow interaction with real-time operating system (RTOS) objects and peripheral registers on microcontrollers. Searches of all references in C ++ projects are now also up to 22% faster.
For those using Visual Studio for macOS development, Microsoft makes it easy to do basic debugging with LLDB, and the IDE will also automatically target macOS as the default configuration during the CMake experience.
Finally, colored tabs are now supported. Visual Studio 2022 already applies a default color scheme to tabs, but users now have the option to select their own colors to differentiate between different projects and file extensions.
Visual Studio 2022 17.1 Preview 2 is now live and You can download it from here.