Using Beyond Compare with TFS

本文介绍了如何配置Visual Studio以使用Beyond Compare进行比较和合并操作。通过简单的步骤,可以为不同的文件类型设置Beyond Compare作为默认工具,提高版本控制的工作效率。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

/* from: http://blog.codejockey.net/post/Using-Beyond-Compare-with-TFS.aspx */

 

英文的将就着看看吧

 

A while ago I published an article but have since lost it, so I’ve decided to re-post it as the topic came up again today and I found myself hunting for the information. This time around I stumbled on a nugget of information in a different place that makes a big difference. 

For starters I found a blog post here by James Manning that contains a great post about setting up TFS to use Beyond Compare (and other comparison tools)

In order to configure Visual Studio to use Beyond Compare for a compare operation choose the following options: 

  1. Select: Tools –> Options –> Expand Source Control –> Choose “Visual Studio Team Foundation Server. 
  2. Select: “Configure User Tools.”
  3. Click the “Add” button.
  4. Enter “.*” in the “Extension” edit box.
  5. Choose “Compare” in the “Operation” combo box.
  6. Enter the path to BComp.exe in the “Command” edit box.
  7. Enter the command line parameters from the table below.

To configure TFS to use Beyond Compare for a merge operation follow the same steps above but choose “Merge” for the operation instead and provide the correct merge command line in the table below the compare table.

*Remember: Beyond Compare 3 Pro supports 3 way merging and the standard edition of it does not.  Also 3 way merging is new to Beyond Compare as of version 3, so this feature is not present in version 2 of the product.

To summarize the following command line parameters are ones I’ve found to be of the most use:

Compare

ProductCommandArguments
TFS (Default)diffmerge.exe%1 %2 %6 %7 %5 /ignorespace
Beyond Compare 2BComp.exe%1 %2 /title1=%6 /title2=%7

Merge

ProductCommandArguments
TFS (Default)diffmerge.exe/merge %1 %2 %3 %4 %6 %7
Beyond Compare 2BComp.exe%1 %2 /title1=%6 /title2=%7
Beyond Compare 3 (Standard – no 3-way Merge)BComp.exe

%1 %2 /savetarget=%4 /title1=%6 /title2=%7

Beyond Compare 3
(Pro / 3-way merge)
BComp.exe%1 %2 %3 %4  /title1=%6 /title2=%7 /title3=%8 /title4=%9

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值