Visual Studio Code Review Difference Window

C#Visual Studio

C# Problem Overview


When I was doing C# code reviews at first in VS 2012 I was getting a side by side comparison of the old and new code. However now I am getting all code in the same window with red lines for old code and green lines for new code. I cannot find the option to change this back to a difference window. I know this is a simple issue but any help will be greatly appreciated!

C# Solutions


Solution 1 - C#

There should be a button on the toolbar like this one that will let you select the 4 different "diff modes".

enter image description here

You can also use the following keyboard shortcuts:

  • Ctrl+\, Ctrl 1 - Inline
  • Ctrl+\, Ctrl 2 - Side-by-side
  • Ctrl+\, Ctrl 3 - Left Only
  • Ctrl+\, Ctrl 4 - Right Only

to change the view.

Solution 2 - C#

Below screenshot will help in setting the option to compare side by side.

Side by side mode

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionPaddyView Question on Stackoverflow
Solution 1 - C#DaveShawView Answer on Stackoverflow
Solution 2 - C#ShivView Answer on Stackoverflow