Microsoft has released the second preview for Visual Studio 2022 version 17.1. This is the first minor version of the 2022 branch of the development environment. Among other things, it is dedicated to the integration of other Git features and brings new things to the editor. C ++ does not go away empty-handed either: Clang and LLVM receive an upgrade to version 13 and a new one Configure Preset-Template should allow the configuration and creation of CMake projects on remote macOS systems with CMakePresets.json.
New git features
Preview 2 for version 17.1 introduces comparing two Git branches in Visual Studio 2022. This should be helpful, among other things, to get an overview before creating a pull request or merging or deleting a branch.
To compare a checked-out branch with another, you can use the branch picker in the status bar or the Git Changes-Tool window select any local or remote branch. A right click on this shows the option Compare with Current Branch. Alternatively, this command can also be accessed from the branch list in the Git repository window. You can then use the ChangesNavigate the list to the desired file to be compared.
The other new Git features include checking out the top of a remote branch, managing and creating new branches on all active repositories at the same time, and splitting changes into different commits.
All details about the new Git features are provided in the second preview for Visual Studio 2022 17.1 a specially written blog entry.
Further changes in Preview 2
The new editor features include the automatic saving of code documents when the application is no longer in focus – for example when a user switches to another application in Windows. This preview function can be found under ToolsOptions under EnvironmentPreview Features track down and click on the Autosave-Activate option.
In addition, color themes can now be set in the IDE so that tabs are colored according to file extension or project. Tab colors can now also be individually configured, provided that their coloring is activated: A right-click on a tab then leads to the option to change the color.
Version 17.1 is the first minor version of Visual Studio 2022, which was launched as version 17.0 at the end of 2021. According to Microsoft, it is not uncommon for Visual Studio users to wait for the first minor release before deciding to upgrade. The preview can be Install in parallel to an existing Visual Studio version. The development environment Visual Studio 2022 appeared in November 2021 with the biggest innovation that it is available as a 64-bit application.