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

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

问题描述

当我第一次在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代码查看差异窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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