SwiftHands
SwiftHands

Reputation: 253

"Scope Highlight" feature in Visual Studio? (same as seen in BlueJ for java)

I would like to know (as I've failed so far in finding such a feature in the VS's options), if there is a feature which allow for scope highlighting same as seen in the BlueJ IDE for java, here is an example:

enter image description here

Note how the code blocks are all highlighted with color, when learning java using blueJ i found it to be extremely easy on the eye when looking at code, and everything felt a lot more organized, moving to C# and working on MS visual studio, its all text with some highlighting, Class names, keywords etc etc, but in general it still feel like a black text on a white background and lacking that organized feeling i sorely miss from blueJ,

i noticed there is a similar question here referring to eclipse, Eclipse IDE Scope Highlighting?

just to be on the safe side, ill ask again referring to Visual studio, is there such a feature in VS? is there an add-on \ plugin for VS which allows it?

Thanks in advance for your answer.

Upvotes: 8

Views: 2799

Answers (2)

Kim
Kim

Reputation: 758

Microsoft provides a free Productivity Power Tools extension for Visual Studio 2013 and 2015. This has a "Structure Visualizer" feature similar to the CodeRush plugin. Both are more subtle than the BlueJ style, but should make scopes a little clearer.

screenshot

Productivity Power Tools 2013

Productivity Power Tools 2015

Update

Visual Studio 2017 integrated a version of this into the core application for C#, Visual Basic, F#, and XAML (as Structure Guide Lines). However, C++ still requires an extension.

Upvotes: 5

Luis
Luis

Reputation: 1880

Look at the DevExpress CodeRush plugin, there is a 30-day trial version. The function it provides is called "Structural highlighting", and I think its even better than what you want (and its customizable).

CodeRush Express

CodeRush Documentation

Upvotes: 1

Related Questions