How to: Associate a File Type with a Difference Tool

The comparing tool that is included with Team Foundation tries to open files when a compare operation is run upon them. The tool is compatible with text and XML based files; however, if you want to associate a specific file type with a third-party comparing or difference tool, use the procedure that is described below.

Required Permissions

To perform this procedure, you must be a member of the Administrators or Users security group on the computer where Visual Studio is installed. For more information, see Team Foundation Server Permissions.

To associate a file type with a third-party compare tool

  1. On the Tools menu, click Options.

  2. In the Options dialog box, locate Source Control, expand it, and then click Visual Studio Team Foundation Server.

  3. Click Configure User Tools.

  4. In the Configure User Tools dialog box, click Add.

  5. In Configure Tool dialog box, specify the extension you want to associate with your tool in the Extension text box, for example .cpp.

  6. Use the Operation drop-down list to click Compare.

  7. In the Command text box, either type the path and name to your tool, or use the ellipses () to locate it.

  8. In the Arguments text box, type any arguments that your tool requires.

  9. Click OK.

  10. Repeat steps 4 - 9 to add more file type extensions.

  11. Click OK.

See Also

Other Resources

Comparing Files in Source Control