Team Foundation Server (TFS) File Difference viewer - customize with other tool

青春壹個敷衍的年華 提交于 2019-11-30 13:44:06

问题


I am using Team Foundation Server (TFS) for Visual Studio 2005.

Whenever i wish to compare two file's versions TFS displays a window with the differences.

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!

Is there any way to configure TFS to split it horizontally?


回答1:


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.

A nice blog post exists below:

http://www.vitalygorn.com/blog/post/2007/12/Better-DiffMerge-tool-for-TFS.aspx




回答2:


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 post from 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.




回答3:


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




回答4:


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.

Related post on StackOverflow




回答5:


To use WinMerge (on SourceForge as 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.

In the "Configure Tool" dialog, I have set the following information:

  • Extension: .*
  • Operation: Compare (or Merge if you want)
  • Command: Path to WinMergeU.exe
  • Arguments: /x /e /u /wl /wr /dl %6 /dr %7 %1 %2


来源:https://stackoverflow.com/questions/188166/team-foundation-server-tfs-file-difference-viewer-customize-with-other-tool

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!