Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to Turn Off Showing Whitespace Characters in Visual Studio IDE

I don't know what I did but I don't know how to get rid of those arrows on the left.

alt text

like image 840
Juan Avatar asked Oct 31 '10 23:10

Juan


People also ask

How do I show white spaces in Visual Studio?

In Visual Studio for Windows, to display whitespace characters (tabs, spaces, etc) you simply press Ctrl + R, Ctrl + W.

How do I show special characters in Visual Studio?

The keyboard shortcut is CTRL + R , CTRL + W . The command is called Edit. ViewWhiteSpace . It works in all Visual Studio versions at least since Visual Studio 2010, the current one being Visual Studio 2019 (at time of writing).


6 Answers

CTRL+R, CTRL+W : Toggle showing whitespace

or under the Edit Menu:

  • Edit -> Advanced -> View White Space

[BTW, it also appears you are using Tabs. It's common practice to have the IDE turn Tabs into spaces (often 4), via Options.]

like image 103
Mitch Wheat Avatar answered Oct 01 '22 17:10

Mitch Wheat


In Visual Studio 2010 the key sequence CTRL+E, S will also toggle display of whitespace characters.

like image 26
Kellen Donohue Avatar answered Oct 01 '22 17:10

Kellen Donohue


In Visual Studio 2015 From the top menu

Edit -> Advanced -> View White Space

or CTRL + E, S

like image 20
Max Carroll Avatar answered Oct 01 '22 19:10

Max Carroll


If the Toggle Visual Space icon shall be added to a Visual Studio toolbar of your choice, because it shall be turned on and off via mouse click, then follow this instruction:

  1. Customize the desired toolbar

  2. Click on Customize...

  3. Click on Add Command...

  4. Go to Edit and chose Toggle Visual Space

  5. Click on OK

Tested with Visual Studio 2019.

like image 40
CKE Avatar answered Oct 01 '22 17:10

CKE


CTRL+SHIFT+* is the de-facto standard key combination for showing/hiding whitespace characters in all Microsoft products that support this feature.

P.S: * refers to 8- * key, not to numeric keypad * key.

like image 22
AnT Avatar answered Oct 01 '22 19:10

AnT


for VS code and later versions Ctrl + P to open and then writing Whitespace, you can select the View: Toggle Render Whitespace

like image 31
Nick P Avatar answered Oct 01 '22 17:10

Nick P