Search code examples
c#visual-studio-2013

Why are (-) marks showing up in my editor in Visual Studio?


I was writing some code and I don't know what I did, but my code started looking like this. I'm using boot camp on a mac and I tried to type the { like you do on a mac, and I think I hit a hot key.

The - marks are kinda greenish and ignored by the compiler.

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

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

----}
}

Solution

  • You have turned on "Show Whitespace" - MSDN

    The keyboard shortcut you accidentally hit to to enable it is CTRL + R, CTRL + W.