c# - 为什么 Visual Studio 的编辑器中显示 (-) 标记?

标签 c# visual-studio-2013

我正在编写一些代码,我不知道我做了什么,但我的代码开始看起来像这样。我在 Mac 上使用 Boot Camp,并尝试输入 {就像你在 Mac 上所做的那样,我想我按下了热键。

-标记有点绿色,被编译器忽略。

if (someThing == 10)
{
----(if someOtherThing != 20)
----{

--------DoSomething();

----}
}

最佳答案

您已打开“显示空白”- MSDN

您不小心按下启用它的键盘快捷键是CTRL + R、CTRL + W

关于c# - 为什么 Visual Studio 的编辑器中显示 (-) 标记?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27110683/

相关文章:

sql-server - 在 Visual Studio 2013 中,我只是想使用 VB 将数据传递给 sql 表?

tfs - 错误: The imported project "C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.Cpp.Default.props" was not found

asp.net - viewstate MAC 验证失败。

c# - Sharepoint 2010 应用程序页面问题

c# - "Enable Debugging of Unmanaged Code"在哪里可以在系统运行时编辑代码?

c# - .net + 使用 redissessionstateprovider + sessionstate 自定义模式在多个服务器上共享 session

c# - 如何将 xsd 转换为具有冗余的 cs? (OTA XML 出版物)

c# - Visual Studio 2013 无法运行 c# 文件

c# - Process.Start 与 C# 中的 Process `p = new Process()`?

c# - 断言 xunit 中存在文件的惯用方法是什么?