News

Visual Studio 2019 v16.7 Preview 4 Boosts Git, Offers Razor Editor

Visual Studio 2019 version 16.7 Preview 4 arrived this week, sporting boosted Git productivity and an experimental Razor editor for creating Blazor and other projects.

For more on the Razor editor, see this article.

Git productivity, meanwhile, has been improved in a number of ways since changes to the distributed version-control system for tracking changes in source code were announced in March.

Among the new Git functionality is an improvement to resolve merge conflicts, for situations when Git can't automatically resolve code differences between two commits.

For example, there's a new prompt to open the Merge Editor in certain circumstances when a file contains conflicts, such as when the Git Changes window isn't open and developers only see a file with conflict indicators.

The Merge Editor also received several other enhancements:

  • The team changed the legacy TFVC terminology of Source and Target to Incoming and Current with a strong emphasis on the branch name, addressing a constant point of confusion
  • Incoming and Current also each have a new checkbox to take all changes from either version with a single click
  • The Merge Editor now makes it easier to parse conflicts by better aligning matching lines, displaying word level differences, and making differing whitespace visible
  • The team also reduced the clutter around the zoom margin, health margin, and toolbar
  • Developers can turn off non-conflicting differences to just focus on the conflicts
  • If developers don’t need the horsepower of the Merge Editor, such as in Add/Add conflicts, they can now resolve those at the file level with a two-way merge
The Merge Editor experience in animated action
[Click on image for larger, animated GIF view.] The Merge Editor experience in animated action (source: Microsoft).

Developers also can view outgoing commits in the Git Repository window. All of the new Git functionality is explained in more detail in a July 9 blog post.

The Test Explorer also received some attention, getting a new Run/Debug All Tests In View, replacing the Run All Tests and Debug All Tests command items.

"The Global Run/Debug All commands will now only appear in the top-level Test menu," Microsoft added in the release notes. "They are no longer included in the Test Explorer toolbar or context menu of any test window view. When triggered from the Test Explorer, the Analyze Code Coverage for All Tests now applies to the test window views as well."

There's also a bunch of new short-cut keys to remember (good luck) and improvements to C++ coding, some of which was detailed in Preview 3.

The release notes also list 12 different fixes from the developer community.

About the Author

David Ramel is an editor and writer at Converge 360.

comments powered by Disqus

Featured

  • Compare New GitHub Copilot Free Plan for Visual Studio/VS Code to Paid Plans

    The free plan restricts the number of completions, chat requests and access to AI models, being suitable for occasional users and small projects.

  • Diving Deep into .NET MAUI

    Ever since someone figured out that fiddling bits results in source code, developers have sought one codebase for all types of apps on all platforms, with Microsoft's latest attempt to further that effort being .NET MAUI.

  • Copilot AI Boosts Abound in New VS Code v1.96

    Microsoft improved on its new "Copilot Edit" functionality in the latest release of Visual Studio Code, v1.96, its open-source based code editor that has become the most popular in the world according to many surveys.

  • AdaBoost Regression Using C#

    Dr. James McCaffrey from Microsoft Research presents a complete end-to-end demonstration of the AdaBoost.R2 algorithm for regression problems (where the goal is to predict a single numeric value). The implementation follows the original source research paper closely, so you can use it as a guide for customization for specific scenarios.

  • Versioning and Documenting ASP.NET Core Services

    Building an API with ASP.NET Core is only half the job. If your API is going to live more than one release cycle, you're going to need to version it. If you have other people building clients for it, you're going to need to document it.

Subscribe on YouTube