Comparing files using diff

You can compare file revisions using the diff tool associated with P4VS. The default diff tool is P4Merge, which is included with P4V. To associate a different diff tool, go to Tools > Options > Source Control > Perforce - Diff/Merge. For more information, see Setting P4VS preferences.

To diff two files or file revisions:

  1. In the Solution Explorer, Submitted tool window, Submit Changelist dialog, Pending tool window, or Pending Changelists dialog, right-click the file whose revisions you want to diff.

    You can also diff two file revisions from the File History tool window by dragging one revision row onto another.

  2. Select one of the following:

  3. In the Diff dialog, specify the revisions of the files you want to diff:

  4. Click Diff. P4VS launches P4Merge (or your preferred diff tool, if it is not P4Merge), displaying the differences between the files at the specified revision.

For more information about diffing files with P4Merge, see the P4Merge help.