Tuesday, November 15, 2016

Diff Files in Visual Studio

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 type Tools.DiffFiles in the Command window, with a handy file name completion:
Using Tools.DiffFiles from Visual Studio Command window

Entire article is on StackOverflow
http://stackoverflow.com/questions/13752998/compare-two-files-in-visual-studio-2012



7
Does this diff tool provide any useful feature like copy to left, copy to right, etc? When I diff working copy with the server version I sometimes wish to undo some of the changes and has to do manual copy pasting. – Samuel Feb 12 '14 at 10:24
54
Why is this feature hidden from the VS UI ? This is the easiest and effective way of comparing two files... – eka808 Feb 14 '14 at 15:23
4
If your path has spaces, you can wrap either the entire path or just the part part with spaces in quotes. – pennstatephil Jun 24 '14 at 15:16
40
For those of you who are new to Visual Studio the Command Window can be opened by going to: View > Other Windows > Command Window (VS Pro 2013) or with CTRL+ALT+A – Cleanshooter Jun 26 '14 at 13:30
12
such a shame VS doesn't have a menu item for this very basic functionality. many IDE's/ editors do. – dewdSep 16 '14 at 9:09


No comments:

Post a Comment