Search code examples
visual-studiovisual-studio-2015visual-studio-2017

How do I make the Structured Indentation lines solid in Visual Studio?


Instead of having dotted vertical lines underneath each {:

enter image description here

It used to to have solid lines:

enter image description here

I know you can turn these lines off and change their color. (Found these answers while searching.) But what happened to the line style?


Solution

  • You can disable the lines with the option Show guides for declaration level constructs under Text Editor > C# > Advanced > Block Structure Guides.

    Since Visual Studio 2017 Update 2, the soft line has been replaced by the dotted one. As far as I can see there is no option to change the dotted line back to the softer one. You can suggest this feature using Connect.