
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.
