How to show white space in Visual Studio

In Microsoft Word I usually have the paragraph symbol turned on to Show Hidden Formatting Symbols (white space) so that I can clearly see spaces, tabs, and other white space characters. 

image

image

Up until recently I had no idea that Visual Studio had the same option to display white space.  Jeff Atwood’s recent blog post Whitespace: The Silent Killer had a screen shot on some code showing white space characters, so I hunted around in the Visual Studio toolbars for a little bit and found the option under the Edit menu.

Edit > Advanced > View White Space

image 

image

You can also use Ctrl+R, Ctrl+W to toggle it on and off.

 



Published 11 November 2009 09:19 PM by Jeff Widmer

Comments

# Twitter Trackbacks for How to show white space in Visual Studio - Jeff Widmer's Blog [asp.net] on Topsy.com said on 11 November, 2009 09:47 PM

Pingback from  Twitter Trackbacks for                 How to show white space in Visual Studio - Jeff Widmer's Blog         [asp.net]        on Topsy.com

# as566 said on 24 November, 2009 05:07 PM

Thanks for the article!

I accidentally turned this feature on, and couldn't find how to turn it back off.

# jml said on 24 May, 2010 03:26 AM

It's possible to show whitespace in SQL Management Studio 2005 by modyfing registry key to 1

HKEY_CURRENT_USER\Software\Microsoft\Microsoft SQL Server\90\Tools\Shell\Text Editor\Visible Whitespace

# Aaron Dutton said on 29 December, 2010 02:14 PM

In Visual Studio 2010, the command is the same.  However, if you try to add it to a toolbar, you'll find it under Edit | Toggle Visual Space.  Why the differing names?  Beats me.

# Tim said on 22 February, 2011 07:04 AM

Thanks - I was looking for that!

# Grisner said on 28 April, 2011 07:03 AM

Thanks! I also accidentally turned this feature on and have searched around for a time, trying to find the way to turn it of.

Leave a Comment

(required) 
(required) 
(optional)
(required) 

Search

Go

This Blog

News

Syndication