Comparing checked out files with other Team Foundation Server versions

Have you ever applied another team member’s TFS shelveset and later wanted to compare one of the changed files to another version? Have you ever wanted to review exactly what you changed in a file you modified? Since each file in a shelveset will also be checked out, the process is the same for either case. To see the changes in a particular checked out file:

1. right click the file name in the Solution Explorer

2. Click Compare option. This will bring up the Compare dialog box. You can compare the file to the latest version on the server (the default) or chose a different version by date, label, or changeset. I normally use the latest version but have occasionally used the date option.

3. Click OK in the Compare dialog box. A difference window will be displayed which shows you the changes and allows you to navigate through them with arrow buttons.