如何在 Visual Studio 2010 中比较两个文件?
在 Visual Studio 2010 中,是否有内置方法或免费插件可以打开两个选定文件的文件比较?
理想情况下,我希望能够在解决方案资源管理器中选择两个文件,右键单击其中一个,然后显示一个选项来比较这两个文件(在并排比较工具中)。
我知道 Visual Studio 比较工具,但我的理解是它在 Visual Studio 2010 下不起作用。
In Visual Studio 2010, is there a built-in way, or a free add-on that can open a file comparison for two selected files?
Ideally, I'd like to be able to select two files in the Solution Explorer, right click on one of them, and be presented an option to compare the two files (in a side-by-side diffing tool).
I'm aware of Visual Studio Comparison Tools, but my understanding is that it does not work under Visual Studio 2010.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以使用这样的宏来调用您选择的 diff 程序:
然后您可以通过“工具”->“指定键盘快捷键来运行宏”。选项->键盘。
You can use a macro like this to call a diff program of your choice:
You can then assign a keyboard shortcut to run the macro, via Tools -> Options -> Keyboard.
您尝试过 Devarts 代码比较吗? 此处有一个免费版本。免费版本确实有一些限制,但它可能包含您需要的所有内容(另请参阅功能矩阵< /a>)。请参阅该网站了解更多信息。
您可以并排查看代码块或文件并查看差异(见下文)。

它还可以让您使用>>同步差异。如图所示的按钮。
Have you tried Devarts Code Compare? There is a free version here. The free version does have some limitations but it may include everything that you need (also see the feature matrix). See the site for more info.
You can look at code blocks or files side by side and see the differences (see below) .

It will also let you synchronize the differences using the >> buttons shown in the image.