I saw new comparsion tool in VS 2012 for comparing two files or two versions of file. I like it. But when I tried to find it I can't because I don't use TFS. Is there a way how can I just compare two files with builtin feature in VS but without TFS?
相关问题
- How to know full paths to DLL's from .csproj f
- Importing NuGet references through a local project
- What is the best way to do a search in a large fil
- Visual Studio 2019 - error MSB8020: The build tool
- 'System.Threading.ThreadAbortException' in
相关文章
- How to show location of errors, references to memb
- How to track MongoDB requests from a console appli
- What is the correct way to declare and use a FILE
- Visual Studio Hangs on Loading UI Library
- How to use Mercurial from Visual Studio 2010?
- How do I get characters common to two vectors in C
- Making new files automatically executable?
- Copy different file to output directory for releas
You can invoke
devenv.exe /diff list1.txt list2.txt
from the command prompt or, if a Visual Studio instance is already running, you can typeTools.DiffFiles
in the Command window, with a handy file name completion:There is also a Visual Studio extension called CompareFiles, which does nothing else but adding the "Compare Files" entry to the solution explorer context menu. It invokes the built-in Visual Studio diff tool.
Just in case that someone (like me) doesn't want to install an all-in-one extension like VSCommands...
In Visual Studio 2012, 2013, 2015, you can also do it with Web Essentials, just right click the files and from context menu > Web Essential >> Diff selected files:
Edit: It's now available as a separate extension
If you are working with TFS connected then right click on file which you need to compare (through source control explorer) and it presents you a window like this -
Now change path of source file in 'Souce Path:' and you get comparision through VS comparision tool.
Similarly you can compare folder also which compares all files of a folder at once.
You can try VSCommands extension from Visual Studio Gallery. Latest release allows you to select two file and compare them:
File Comparer VS Extension by Akhil Mittal. Excellent lightweight tool that gets the job done.