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

蹲街弑〆低调 提交于 2019-12-19 17:41:29

问题


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:

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.


回答1:


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




回答2:


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.

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.



来源:https://stackoverflow.com/questions/14129454/scope-highlight-feature-in-visual-studio-same-as-seen-in-bluej-for-java

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!