From the course: Visual Studio Developer Tips

Unlock this course with a free trial

Join today to access over 22,600 courses taught by industry experts.

The Trailing Whitespace Visualizer extension

The Trailing Whitespace Visualizer extension - Visual Studio Tutorial

From the course: Visual Studio Developer Tips

The Trailing Whitespace Visualizer extension

- [Instructor] Most developers I know are opinionated about their code alignment and are relentless in making sure their code is picture perfect and laid out correctly. In this tip I'll look at visualizing and editing white space in an editor window. This can help understand layout issues and clean up unneeded white space characters. In the typography world white space characters are unicode characters that represent horizontal and vertical space in the document, examples are tab and space, line feed, and character turn. They are invisible by default in the visual studio editors. The first step is to look at how to visualize white space. To do that, I'll open up this c sharp file, the examples I'm showing here also work in other code editors like f sharp and c plus plus, it also works in markup editors like html and xml. So the first step is to go to edit and choose advanced view white space. Now you can see some new characters on the line. For example on line 18 at the beginning of…

Contents