2

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();

----}
}
user3840170
  • 26,597
  • 4
  • 30
  • 62

2 Answers2

2

You have turned on "Show Whitespace" - MSDN

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

bpruitt-goddard
  • 3,174
  • 2
  • 28
  • 34
1

You've turned on "Show Whitespace" - you can toggle this in the menus, under: Edit > Advanced > Show Whitespce

Rowland Shaw
  • 37,700
  • 14
  • 97
  • 166