Team Foundation Server (TFS) File Difference viewe

2019-02-05 20:55发布

问题:

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