简体   繁体   English

VS2010使用WinMerge,但TFS2010的Pending Changes选项卡使用DiffMerge

[英]VS2010 uses WinMerge but TFS2010's Pending Changes tab uses DiffMerge

from VS2010, if I select compare from the context menu, WinMerge is used, but when doing a merge with TFS2010 tools in VS (Pending Changes tab), it insists on using the defautl diffmerge tool that sucks. 从VS2010开始,如果我从上下文菜单中选择比较,则使用WinMerge,但是当在VS(Pending Changes选项卡)中与TFS2010工具合并时,它坚持使用非常糟糕的defautl diffmerge工具。

Where do I configure TFS to use my own diff/merge tool? 我在哪里配置TFS以使用我自己的差异/合并工具?

http://blog.paulbouwer.com/2010/01/31/replace-diffmerge-tool-in-visual-studio-team-system-with-winmerge/ http://blog.paulbouwer.com/2010/01/31/replace-diffmerge-tool-in-visual-studio-team-system-with-winmerge/

Configure Visual Studio 配置Visual Studio

Open Source Control > Visual Studio Team Foundation under the Tools > Options menu in Visual Studio. 在Visual Studio的“工具”>“选项”菜单下打开“源代码管理”>“Visual Studio Team Foundation”。
Click on Configure User Tools … and the Configure User Tools dialog will become available. 单击“配置用户工具...” ,“配置用户工具”对话框将可用。

Do not forget to restart Visual studio to load configuration. 不要忘记重新启动Visual Studio以加载配置。

Download the reg file , import into regedit.exe and you're done! 下载reg文件 ,导入regedit.exe,你就完成了! Or if you want to do it manually in Visual Studio do the following: 或者,如果要在Visual Studio中手动执行此操作,请执行以下操作:

Click on Tools menu
Click on Options menu item
Expand Source Control tree item
Select Visual Studio Team Foundation Server tree item
Click on Configure User Tools... button

Comparing 对比

To use WinMerge as the Compare/Diff tool: 要使用WinMerge作为比较/差异工具:

Click the Add... button
For Extension, type *
For Operation, select Compare
For Command, browse for C:\Program Files\WinMerge\WinMerge.exe
For Arguments, type /x /e /ub /wl /dl %6 /dr %7 %1 %2
Click OK to accept

Merging 合并

To use WinMerge as the Merge tool: 要将WinMerge用作合并工具:

Click the Add... button
For Extension, type *
For Operation, select Merge
For Command, browse for C:\Program Files\WinMerge\WinMerge.exe
For Arguments, type /x /e /ub /wl /dl %6 /dr %7 %1 %2 %4
Click OK to accept

Note: You need to click on the Save button on the tool bar within WinMerge merge to commit a merge before exiting the screen 注意:您需要在退出屏幕之前单击WinMerge合并中工具栏上的“保存”按钮以提交合并

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM