Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to switch view modes in built-in Diff viewer of Visual Studio 2012 and 2013?

Currently, this is how Visual Studio displays the differences between files:

enter image description here

I would like it to display the two files separately (including the red/green notations), as I believe is the default settings. How do I change the way it displays the differences?

like image 323
Oren A Avatar asked Nov 19 '13 09:11

Oren A


People also ask

How do I show diff in Visual Studio?

Compare selected filesSelect two files in Solution Explorer and right-click to bring up the context menu. Then select Selected Files to see them side-by-side in the diff view.

How to Compare 2 files in Visual Studio?

locate the required file in the Solution Explorer window, right-click it and choose Compare Selected File in the context menu; open the required file in Visual Studio, right-click the required document name in the document tab well and in the document's context menu select Compare Current File.

How do I go to a previous line in Visual Studio?

Navigate Forward/Backward Ctrl+–/Ctrl+Shift+– If you've moved from one location to another you can use the keyboard sequence <Ctrl>+– to move to the previous location and then you can return using Ctrl+Shift+–.


1 Answers

Check the 'Compare Files' toolbox, there is a button for it.

Or use the keyboard shortcut Ctrl+\, Ctrl+2.

enter image description here

like image 164
bahrep Avatar answered Nov 18 '22 12:11

bahrep