

The vsdiffmerge tool allows you to merge changes side-by-side and pick which contents you want to keep for each difference between the files. If you need to merge two files with significant differences outside of TFVC conflict resolution, use the vsdiffmerge command line tool. Merge more complex changes between two versions when you resolve merge conflicts in TFVC before you check in changes. You can copy and paste changes from the diff view into your workspace version to quickly bring in updates from one version to another. For more information, see Suspend work, fix a bug, and conduct a code review. When you participate in a code review, you use the Diff window to see the code changes that are the subject of the review. The following screenshot shows inline view: Side-by-side mode is more effective in most cases, but you can also use Inline mode, or view the Left file only or Right file only.

Select the arrow next to the Settings icon at the top of the Diff window to change the view. To go back and forth in the files, select places on the visual summary scroll bars.

Select the arrow icons at the upper-left of the Diff window, or press F8, to skip back and forth between diffs. The scroll bars next to each version show a visual summary of the differences between the files.Lines that have code review comments are outlined and have a yellow background.Lines that are being changed have a red background in the source and a green background in the changed version.Lines that are being added appear as shading in the source, and have a green background in the changed version.Lines that are being deleted have a red background in the source, and are replaced by shading in the changed version.If one of the files is checked out in your workspace, you can modify the file as you run the comparison. The Diff window shows the difference between two files. When you compare files using the instructions in the previous sections, Visual Studio displays the files in the Diff window. In the History window, select two versions of the file, right-click and select Compare. In Source Control Explorer, right-click a file and select View History. On the Visual Studio menu bar, select View > Other Windows > Source Control Explorer. Compare two versions of a file in your TFVC historyĬompare two versions of a file already checked into Team Foundation Version Control: When the Compare dialog box appears, select OK. You can also use Solution Explorer or Source Control Explorer to compare a file in your workspace with a version of the file on the server.
