的Visual Studio 2012代码审查差异窗口 [英] Visual Studio 2012 Code Review Difference Window

查看:386
本文介绍了的Visual Studio 2012代码审查差异窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我最初在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 + \ 控制1 - 内联

  • 按Ctrl + \ 控制2 - 侧并排

  • 按Ctrl + \ CTRL 3 - 只剩

  • 按Ctrl + \ 控制4 - 仅右

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

改变视图。

这篇关于的Visual Studio 2012代码审查差异窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆