Use your own file compare tool in Visual Studio

來源:互聯網
上載者:User

Which file compare software are you using for comparing files and folders? How do you like it?

I ever tried several ones, include:

  • WinDiff: comes along with the Windows SDK, I think it is the build in file compare tool of Visual Studio(TFS).
  • TortoiseMerge: build in file compare tool of TortoiseSVN.
  • WinMerge: an open source differencing and merging tool for Windows.
  • Beyond Compare: commercial, powerful.
  • FCU: File-Compare Utility, light-weighted, freeware.

Honestly, each of above is good enough for me, but it’s a problem when I have choices: FCU is green(no need to install) and fast, but less features. Beyond Compare is really powerful, but it isn’t free.

Eventually, after tried them for a while in my daily work, I found that for comparing files, TortoiseMerge is the best, and WinMerge is the best for comparing folders.

Now the question is, I don’t like the build in file compare tool of Visual Studio, because:

  1. It ignores blank lines by default, and I don’t want to waste my time on changing the settings for each of my computers, or each time I reinstall the Visual Studio.
  2. If you renamed a variable, or removed/added a white space in a line, what you can get from it is “The line has been changed”, but I want more details.
  3. The colors of default settings are monotone, and I don’t know how to change them.

 

TortoiseMerge is much better:

So can I use my own tools (TortoiseMerge) for comparing files in Visual Studio(TFS) ? 

Surely I can, now let’s do it:

  1. Visual Studio->Tools –> Options –> Source Control –> Visual Studio Team Foundation Server.
  2. Click Configure User Tools button, a dialog will be shown, click Add button on it.
  3. Enter the settings properly. I choose “.*” as the extension here because I want to compare all kinds of files with my file compare tool.
    For the “Arguments”, usually we don't need to change it.
  4. Save the settings.

That’s it, now TortoiseMerge is the default file compare tool of Visual Studio.

Enjoy it

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.