当我第一次在VS 2012中进行C#代码审查时,我得到了新旧代码的并排比较. 但是现在我在同一个窗口中获得所有代码,旧代码用红线表示,新代码用绿线表示. 我找不到将其更改回不同窗口的选项. 我知道这是一个简单的问题,但是任何帮助将不胜感激!
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!
推荐答案在工具栏上应该有一个像这样的按钮,让您选择4种不同的差异模式".
There should be a button on the toolbar like this one that will let you select the 4 different "diff modes".
您还可以使用以下键盘快捷键:
You can also use the following keyboard shortcuts:
- Ctrl+\,Ctrl 1-内联
- Ctrl+\,Ctrl 2-并排
- Ctrl+\,Ctrl 3-仅左
- Ctrl+\,Ctrl 4-仅限右侧
- Ctrl+\, Ctrl 1 - Inline
- Ctrl+\, Ctrl 2 - Side-by-side
- Ctrl+\, Ctrl 3 - Left Only
- Ctrl+\, Ctrl 4 - Right Only
更改视图.
更多推荐
Visual Studio代码查看差异窗口
发布评论