Keep tabs on white space in Visual Studio

To turn on visual indicators of whitespace in Visual Studio, use the keyboard chord (Ctrl-R, Ctrl-W) (setting found in Tools > Environment > Options):

image

Instead of nothing:

image

You can now see:

image

By default, when I set the insertion point on line 12 and hit Enter, Visual Studio inserted spaces instead of tabs:

image

To turn this off, change the setting to Keep Tabs in Tools > Options > Text Editor > All Languages > Tabs:

image

image

You can also do Edit > Advanced > Tabify Selected Lines.

Now I won’t commit ugly spaces.  And a reminder to review Sara Ford’s blog more often.

Advertisement
This entry was posted in Tools and tagged , , . Bookmark the permalink.

4 Responses to Keep tabs on white space in Visual Studio

  1. Hemadri says:

    Thank you so much. Its helped me lot. I did Ctrl+R and Ctrl+W

  2. Nate says:

    Thank you for this info, made it really easy to turn off tabs! :)

  3. bishnu biswal says:

    Thank You Very much its realy help me

  4. Matt says:

    Excellent, this was really starting to annot me

Leave a Reply

Fill in your details below or click an icon to log in:

Gravatar
WordPress.com Logo

Please log in to WordPress.com to post a comment to your blog.

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s