Friday, June 16, 2023

Visual Studio 2022 17.7.0 Preview 2.0: Improved File Comparisons

Visual Studio 2022 17.7.0 Preview 2.0 is released and in this post, let's have a look at one of the handy features that got improved. This feature was initially introduced with Visual Studio 2022 17.7.0 Preview 1.0, but with the latest release, the user experience is more improved.

With this feature, you can compare files within Visual Studio and you no longer have to leave the current context and use an external tool (I was using Visual Studio Code) to compare files.

You can use this feature in multiple ways. The easiest is from the Solution Explorer, multi-select two files by holding down the Ctrl button, then right-click and compare them using the "Compare Selected" option.
Compare Selected
The other options are,
  • Right-click on a single file, and select "Select for Compare". Then navigate to the second file in the Solution Explorer, right-click on that, and click on "Compare with <SelectedFile>".
  • Right-click on a single file, and then click "Compare With…". This will open up the File Explorer. Now you can navigate to any file on disk and select it for comparison.
It's a small feature, but very handy.

Happy Coding.


No comments:

Post a Comment