Visual Studio 2022 Improves Git Support And Code Cleanup
Written by Kay Ewbank   
Tuesday, 11 January 2022

The latest preview of Visual Studio has been released with improvements to the support for Git along with better code cleanup. The preview is of the full desktop IDE, as opposed to Microsoft's similarly-named Visual Studio Code.

The development team says the Git experience is an area they're working to enhance in Visual Studio, and that version 17.1 Preview 2 adds long awaited improvements.

visstudprev

The improvements for using Git start with the ability to compare branches, so you can compare your checked out branch with any local or remote branch. You also now get checkout commit, meaning you can checkout the tip commit or any previous commit of remote and local branches.

Multi-repo branching is another area to have received attention, and it's now possible to manage and create new branches on all active repositories at the same time. The final Git improvement is line-staging, also known as interactive staging. This allows developers to split their changes across different commits by staging sections of code changes.

The other main improvement to this preview is the ability to use Code Cleanup automatically when a file is being saved. This lets you clean up your code file to make sure it is formatted correctly and that your coding style preferences are applied. Among the customizable preferences that you can set are format document, sort usings, and remove unnecessary usings. The developers say code cleanup can:

"help minimize stylistic violations within PRs and more to allow developers to spend less time fixing code not meeting specific standards and more time doing what they do best."

The new version is available now.

 visstudprev

More Information

Visual Studio Website

Related Articles

Visual Studio 2022 Preview 2 Targets Productivity

Visual Studio 2022 Will Be 64-bit

Microsoft Aims For Better Visual Studio Extensions  

Visual Studio Preview 2 Revamps Git Functionality

Visual Studio To Get Git

GitHub for Windows

Git and GitHub top in popularity stakes

Visual Studio Roadmap Promises Better Debugger  

Visual Studio 2019 Now Available

Visual Studio 2019 Preview Integrates Live Share

 

To be informed about new articles on I Programmer, sign up for our weekly newsletter, subscribe to the RSS feed and follow us on Twitter, Facebook or Linkedin.

Banner


Lightbend Announces Akka 3
15/11/2024

Lightbend, the company that developed Akka, has announced Akka 3, and has changed its name to Akka. The company produces cloud-native microservices frameworks, and Akka is used for building distribute [ ... ]



Ursina - A Game Engine Powered by Python
08/11/2024

Ursina is a new open source game engine in which you can code any type of game in Python, be it 2-D, 3-D, an application, a visualization, you name it.


More News

espbook

 

Comments




or email your comment to: comments@i-programmer.info

Last Updated ( Tuesday, 11 January 2022 )