How to: Associate a File Type with a Merge Tool

The diff/merge tool included in Team Foundation opens when the user attempts to compare two files (or two versions of a file), or when the user elects to perform a manual merge of a file with conflicting changes.

The tool is compatible with text and XML based files; however, should you wish to associate a specific file type with a third-party merging or diff tool, use the procedure 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 merge tool

  1. From the Tools menu, click Options.

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

  3. Click Configure User Tools.

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

  5. In Configure Tools dialog box, specify the extension you wish to associate with your tool in the Extension box, for example .cpp or * for all files.

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

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

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

    The arrow button shows a list of available variables that the diff/resolve command will fill in before passing them to the configured tool as specified in the arguments box. Any other text in the argument box will be passed to the tool directly.

  9. Click OK.

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

  11. Click OK.

See Also


Understanding Merging