Viewing a diff of your file in Visual StudioWhen submitting a code review, you can look at a diff of the file(s) to see what changes have been made since your last commit. To see the diff, you must first configure the Klocwork plug-in to use your preferred diff tool. Prerequisites:
To configure your diff tool with Visual Studio:
Note: The file path may contain spaces, so it's good practice to include quotes around the macros when defining the arguments.
Viewing the diff from Visual Studio To view the diff for your code review, right-click the file and open the Create Code Review dialog. In the Changes field, click on a node and select Diff.
Tip: You can also right-click and select Diff file or double-click on a node to view the diff.
The diff tool you configured with Visual Studio will open showing you the original file and the modified file.Note: If the node you are trying to view has any associated children nodes, all of them will be diffed.
|