I'm searching for free tool which paints vertical lines highlighting logical structure of code blocks in Visual Studio 2015.

For example

If a = 1 Then
|   If b = 1 Then
|   |   c = 1
|   Else
|   |   c = 2
|   Endif
|   c = 3

Languages: C#, VB


Extension Productivity Power Tools 2015 has the functionality.

enter image description here

It is called Structure Visualizer and can be found illustrated at MSDN blog article under corresponding paragraph.

It adds 3 things:

  • colorful vertical lines connecting beginnings and endings of code blocks
  • code structure map if editor vertical scrollbar is switched to map mode
  • code popups (peek) at vertical lines leaving the viewport or anywhere on the scrollbar map

Colors can be adjusted in items named "Block Structure" located under Visual Studio menu
Tools > Options... > item Environment > Fonts and Colors.

  • Is there an equivalent for Visual Studio Code? – Caltor Feb 16 '17 at 10:34
  • @Caltor - I never used Visual Studio Code so I don't know. – miroxlav Feb 16 '17 at 11:09

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.