Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Dotted lines there on every indent in VS 2010

I am seeing dotted lines in my C# code in VS 2010. Dotted lines appear in every indent. This really bothers me. I must have typed some shortcut key but I'm not able to revert it back.

How can I disable it? What is the use of the dotted lines anyway?

like image 543
Vinod Avatar asked Aug 13 '12 08:08

Vinod


People also ask

How do I get rid of the dotted line in Visual Studio?

Press ctrl+shift+p to open the command palette and search for toggle render whitespaces and click it and the dotted white spaces will disappear.

How do I enable vertical lines in Visual Studio?

You can turn it ON/ OFF. Navigate to Tools –> Options –-> Text Editor–> General, and then you will find “Show structure guide lines” option is Checked. Check / Uncheck the – find “Show structure guide lines” checkbox to turn the guided line on or off.


3 Answers

the 'dotted lines' are part of the editors way of showing you where the indentation levels begin. this is a very useful feature as it allows you to quickly scan longer code sections to see which logic branch that code belongs to.

to change this:

Edit->Advanced->View White Space (CTRL+E,S)

like image 128
jim tollan Avatar answered Sep 16 '22 16:09

jim tollan


Sounds like "view whitespace" is turned on. Under VS2010 you find it under:

Edit->Advanced->View

like image 31
Goz Avatar answered Sep 17 '22 16:09

Goz


You can disable and enable it from the main menu using Edit->Advanced->View White Space. It just shows all the white spaces in the solution. It means that all the tabs also will be drawn by the arrows

like image 29
dvvrd Avatar answered Sep 18 '22 16:09

dvvrd