在 Visual Studio 中比较两个文件 [英] Compare two files in Visual Studio
问题描述
我在 Visual Studio 2012 中看到了用于比较两个文件或一个文件的两个版本的新比较工具.我喜欢.但是当我试图找到它时,我找不到它,因为我不使用 TFS.
I saw the new comparison tool in Visual Studio 2012 for comparing two files or two versions of a file. I like it. But when I tried to find it I couldn't it, because I don't use TFS.
有没有一种方法可以将两个文件与 Visual Studio 中的内置功能(但没有 TFS)进行比较?
Is there a way how I can just compare two files with the built-in feature in Visual Studio (but without TFS)?
推荐答案
您可以从 Visual Studio 开发人员命令提示符调用 devenv.exe/diff list1.txt list2.txt
,或者,如果 Visual StudioStudio 实例已在运行,您可以在 命令窗口 中键入 Tools.DiffFiles
,并使用方便的文件名补全:
You can invoke devenv.exe /diff list1.txt list2.txt
from the Visual Studio Developer Command Prompt or, if a Visual Studio instance is already running, you can type Tools.DiffFiles
in the Command window, with a handy file name completion:
这篇关于在 Visual Studio 中比较两个文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!