visual-studio Team Foundation Server (TFS) 文件差异查看器 - 使用其他工具自定义
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/188166/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Team Foundation Server (TFS) File Difference viewer - customize with other tool
提问by Luis Filipe
I am using Team Foundation Server (TFS) for Visual Studio 2005.
我将 Team Foundation Server (TFS) 用于 Visual Studio 2005。
Whenever i wish to compare two file's versions TFS displays a window with the differences.
每当我想比较两个文件的版本时,TFS 都会显示一个带有差异的窗口。
The problem is that it is always split vertically.
问题是它总是垂直拆分。
In fact, almost every time, i would prefer to have it split horizontally.I've already looked at TFS options and googled but i found nothing. I'm appalled to think that such option is not available!
事实上,几乎每次,我都希望它水平分割。我已经看过 TFS 选项并用谷歌搜索过,但我什么也没找到。我很震惊地认为这样的选项不可用!
Is there any way to configure TFS to split it horizontally?
有没有办法配置TFS来水平分割?
回答by Damien Ryan
I've found the built in differencing tool in TFS woefully lacking so I set up WinMerge (http://www.winmerge.org/) in my environment in Tools -> Options -> Source COntrol -> Visual Studio Team Foundation.
我发现 TFS 中的内置差异工具非常缺乏,因此我在我的环境中的工具 -> 选项 -> 源控制 -> Visual Studio Team Foundation 中设置了 WinMerge ( http://www.winmerge.org/)。
A nice blog post exists below:
下面有一篇不错的博客文章:
http://www.vitalygorn.com/blog/post/2007/12/Better-DiffMerge-tool-for-TFS.aspx
http://www.vitalygorn.com/blog/post/2007/12/Better-DiffMerge-tool-for-TFS.aspx
回答by Scott Dorman
There is no ability to change the orientation of the built-in diff/merge utility. There are a lot of third-party tools (some free, some not) to choose from. Check out this postfrom James Manning where he tracks the correct command/argument values to use when configuring various tools for use by Team Foundation's compare and (content) merge operations.
无法更改内置 diff/merge 实用程序的方向。有很多第三方工具(有些是免费的,有些不是)可供选择。看看这个职位由詹姆斯·曼宁,他通过团队基础的比较和(内容)的合并操作使用配置各种工具时跟踪正确的命令/参数值来使用。
回答by Brady Moritz
This appears to be a more thorough description of how to use Winmerge in TFS- http://www.neovolve.com/post/2007/06/19/using-winmerge-with-tfs.aspx
这似乎是对如何在 TFS 中使用 Winmerge 的更详尽描述- http://www.neovolve.com/post/2007/06/19/using-winmerge-with-tfs.aspx
回答by Praveen Nayak
I have Visual Studio 2012 and I get to choose between side - by - side options and inline mode. With inline mode, the before and after appear one below the other so that I have the full window for editing.
我有 Visual Studio 2012,我可以在并排选项和内联模式之间进行选择。使用内联模式,之前和之后出现在另一个下方,以便我有完整的窗口进行编辑。
回答by palswim
To use WinMerge(on SourceForgeas well), you have to navigate to Tools > Options > Source Control > Visual Studio Team Foundation Server(Visual Studio 2015; other versions may have this option in slightly different places). On that Option page, select Configure User Tools...and in that dialog, select Add...to add the information for your diff tool.
要使用WinMerge(也在 SourceForge 上),您必须导航到“工具”>“选项”>“源代码管理”>“Visual Studio Team Foundation Server”(Visual Studio 2015;其他版本可能在略有不同的地方有此选项)。在该选项页面上,选择配置用户工具...,然后在该对话框中,选择添加...为您的差异工具添加信息。
In the "Configure Tool" dialog, I have set the following information:
在“配置工具”对话框中,我设置了以下信息:
- Extension:
.* - Operation:
Compare(orMergeif you want) - Command: Path to
WinMergeU.exe - Arguments:
/x /e /u /wl /wr /dl %6 /dr %7 %1 %2
- 延期:
.* - 操作:(
Compare或者Merge如果你愿意) - 命令:路径
WinMergeU.exe - 参数:
/x /e /u /wl /wr /dl %6 /dr %7 %1 %2

