visual-studio 你知道visual studio的任何文件比较插件吗?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/351394/
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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-22 09:59:40  来源:igfitidea点击:

Do you know any file comparison add-in for visual studio

visual-studiodiffadd-in

提问by Jaroslav Urban

Is there any built-in, add-in solution for visual studio to compare two files and display result with differences? I could't find one...

Visual Studio 是否有任何内置的附加解决方案来比较两个文件并显示不同的结果?我找不到一个...

采纳答案by djeidot

I use WinMerge. Not as good as Beyond Compare but it's free and open source.

我使用WinMerge。不如 Beyond Compare,但它是免费和开源的。

Also check out Visual Studio Comparison Tools, it's a Visual Studio add-in that connects it to WinMerge.

另请查看Visual Studio 比较工具,它是一个将其连接到 WinMerge 的 Visual Studio 加载项。

回答by Ofek Shilon

Hereis an excellent post that describes integration of many 3rd party diff and merge tools into Visual Studio - including araxis, beyond compare, WinMerge and many others. The post is badly needed, since the command-line parameters that VS can supply aren't fully documented.

是一篇出色的文章,描述了将许多 3rd 方差异和合并工具集成到 Visual Studio 中 - 包括 araxis、beyond compare、WinMerge 和许多其他工具。这篇文章非常需要,因为 VS 可以提供的命令行参数没有完整记录。

Personally, I switched from the built-in tool to Araxis, and am generally happy with it. I am also curious about bazaar, which supposedly (according to the colorful author of its diff-component), "solves the diff problem"... Anyone has any experience with that?

就个人而言,我从内置工具切换到 Araxis,并且总体上对它感到满意。我也对 bazaar 很好奇,据说它(根据其 diff-component 的多彩作者)“解决了 diff 问题”......有人有这方面的经验吗?

回答by HymanD

As for me, CodeCompareis a useful solution for your task. You can compare, merge and edit data within one environment - in the Visual Studio.

对我而言,CodeCompare是您任务的有用解决方案。您可以在一个环境中比较、合并和编辑数据 - 在 Visual Studio 中。

回答by Emmanuel

In addition to djeidot's answer: beware if you're using Visual Studio 2010, Visual Studio Comparison Toolsworks very well with VS 2008, but does not under VS 2010...

除了djeidot的回答:请注意,如果您使用的是 Visual Studio 2010,Visual Studio 比较工具在 VS 2008 中运行良好,但在 VS 2010 下则不行...

回答by kroiz

Once you add some version control plugin to visual studio, you can select the tool for diff.
Perforce are giving away their diff and merge tool for free, it is very good and you don't have to be using the perforce version control system to be using it. one can download it from their site; it is called p4merge. when running the installer you should only select the feature "Visual Merge Tool (P4Merge)" and unselect the other features which are only relevant if you are using perforce.

一旦你向 Visual Studio 添加了一些版本控制插件,你就可以选择 diff 工具。
Perforce 正在免费赠送他们的差异和合并工具,它非常好,您不必使用 perforce 版本控制系统来使用它。可以从他们的网站下载;它被称为 p4merge。运行安装程序时,您应该只选择“Visual Merge Tool (P4Merge)”功能,并取消选择仅在您使用 perforce 时相关的其他功能。

personally I use vim because it do syntax coloring (which I feel is very helpful especially when you do diff or merge) but it has a steep learning curve.

我个人使用 vim 是因为它可以进行语法着色(我觉得这非常有用,尤其是在进行 diff 或 merge 时),但它的学习曲线很陡峭。

回答by nzpcmad

Visual Studio 2005 Team Edition has a built in version (based on WinDiff?) but you can incorporate third party tools e.g.

Visual Studio 2005 Team Edition 有一个内置版本(基于 WinDiff?),但您可以合并第三方工具,例如

Beyond Comparewhich I regularly use.

我经常使用的Beyond Compare

See herefor how-to.

请参阅此处了解操作方法。

回答by Brody

That functionality appears to be related to Source Control. So it is really as source control issue.

该功能似乎与源代码管理有关。所以它真的是源代码控制问题。

If you are not using Source Control - You should be - Try The Vault from www.sourcegear.comfor a good (and free for one user) commercial source control system. There are others and they should come with a comparision tool (The Vault has one and its installed into VS when you install the vault client and connect to a source controlled project).

如果您不使用源代码控制 - 您应该 - 尝试来自www.sourcegear.com 的The Vault以获得一个好的(并且对一个用户免费)商业源代码控制系统。还有其他的,它们应该带有一个比较工具(当您安装 Vault 客户端并连接到源代码控制的项目时,Vault 有一个并将其安装到 VS 中)。

回答by Christopher Edwards

Depending on your use case I'd recommend VisualSVN. You'll get the source control feature of SVN built into the VS IDE plus the ability to compare any source code file with any checked in version file from SVN.

根据您的用例,我会推荐 VisualSVN。您将获得 VS IDE 中内置的 SVN 源代码控制功能,以及将任何源代码文件与来自 SVN 的任何签入版本文件进行比较的能力。

It installs all the prerequites for you SVN (Subversion), TortoiseSVN, Diff, AND VisualSVN (The Visual Studio Integration).

它为您安装 SVN(Subversion)、TortoiseSVN、Diff 和 VisualSVN(Visual Studio 集成)的所有先决条件。

It also has a nice quick windows installer for the SVN server which worries about apache etc. so you don't have to.

它还有一个很好的快速 Windows 安装程序,用于 SVN 服务器,它担心 apache 等问题,因此您不必担心。

Essential for the non linux geek, it it not free but at $49 it is a bargain,

对于非 linux 极客来说必不可少,它不是免费的,但 49 美元的价格很划算,

http://www.visualsvn.com/

http://www.visualsvn.com/

回答by Darren Stokes

SlickEdit Tools Versioning Toolbox has the same diff tool built in as the SlickEdit programmer's editor. The Versioning Toolbox is not free but isn't that expensive either. The diff tool is very nice.

SlickEdit 工具 Versioning Toolbox 具有与 SlickEdit 程序员编辑器相同的内置差异工具。Versioning Toolbox 不是免费的,但也不贵。差异工具非常好。

回答by Roddy

Not that I know of, but Beyond Compareis probably worth a look anyway.

我不知道,但无论如何,Beyond Compare可能值得一看。