Visual Studio代码查看差异窗口

编程入门 行业动态 更新时间:2024-10-26 04:27:52
本文介绍了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代码查看差异窗口

本文发布于:2023-11-05 09:09:32,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1560442.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:差异   窗口   代码   Visual   Studio

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!