Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio 2017 Indent Guide Coloring

In Visual Studio 2015, I had coloring for the indent guides like this.

I can't seem to find this feature in Visual Studio 2017. Is there an extension that does this?

There's an option in the Fonts and Colors to change the color for all Guidelines. But what I want is the same in 2015 where it's automatically color coded (blue, green, teal, purple, etc.) depending on the type/level of the braces.

enter image description here

like image 688
Jack Avatar asked Mar 11 '17 13:03

Jack


4 Answers

Native in VS2017. It's called "Structure Guide Lines"

like image 173
Rodrigo Reis Avatar answered Oct 23 '22 16:10

Rodrigo Reis


I think this is just what you want.This is that extension called "Indent Guides".

The number behind the '#' on behalf of the different level of the Indent Guides.

I know my answer looks terrible. Please forgive me. As a new one here, i really try my best.

Here is what it looks like Here is how i change the color of the indent guides which belongs to different level Follow the step above

like image 31
Longxing Avatar answered Oct 23 '22 17:10

Longxing


There is no such feature built into VS2015. It is added by extensions.

Eg. the "Structure Visualiser" from Productivity Power Tools.

However for 2017 there is a (lesser) feature built in, so the Productivity PowerTools 2017 does not include this feature. (It is now also a set of separate extentions rather than a monolithic tool.)

This is explained in a blog post see section What's Missing?

like image 5
Richard Avatar answered Oct 23 '22 16:10

Richard


There is also an excellent extension for Visual Studio 2015 called Indent Guides that is working really well.

It is not compatible with VS2017 by default, but you can get around that by modifying the extension manifest file within the vsix file:

1) Download IndentGuide v14.vsix for VS2015
2) Use 7-zip (or other archive utility) to open the .vsix file (which is actually a .zip)
3) Edit the extension.vsixmanifest file within the .vsix file
4) Make a copy of the whole VisualStudio Version="14.0" section
5) Change that new copy to VisualStudio Version="15.0"
6) Save the manifest, save the vsix.
7) Double-click the .vsix file to install it.  Ignore the compatibility warning.
like image 3
DrWizard Avatar answered Oct 23 '22 15:10

DrWizard