2

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
Else
|   c = 3
EndIf

Languages: C#, VB

1 Answer 1

2

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.

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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