Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio Code Review Difference Window

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!

like image 731
Paddy Avatar asked Aug 19 '13 14:08

Paddy


People also ask

How do I view code review comments in Visual Studio?

Click on the badge and the extension will open the Team Explorer "My Work" page. "My Work" page will have Code Review Comments section at the bottom. As you can see two code reviews have bold font, meaning those two reviews have new related comments (comments to your code review or replies on your comments).

What is the difference between Visual Studio and Visual Studio Code?

Before getting deeper into the specifics, the main distinction between these editors is that Visual Studio is a full-fledged Integrated Development Environment (IDE), while Visual Studio Code is a rich text editor. This primary difference sets them apart and is why you might choose one over the other.

Why is VS Code better than Visual Studio?

If you need to collaborate with team members on development or debugging, then Visual Studio is the better choice. If you need to do serious code analysis or performance profiling, or debug from a snapshot, then Visual Studio Enterprise will help you. VS Code tends to be popular in the data science community.


1 Answers

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.

like image 179
DaveShaw Avatar answered Sep 17 '22 15:09

DaveShaw