How to make Visual Studio 2012 turn gray ifdef instead of dimming it

There are many passes in our code that will be formatted. With the previous version of Visual Studio, they were gray. However, with Visual Studio 2012 they are no longer gray, but darkened, i.e. These passages are displayed with all the colors of the syntax highlighting scheme, but with less saturated colors. The Microsoft programmer who implemented this must have thought it was very cool, but in practice it is very difficult to determine if a pass is active or inactive.

Has anyone found a way to trick Visual Studio 2012 using the old method of separating inactive passages?

Thanks for any answer

+7
source share
1 answer

You have an Opacity parameter that you can change:

In Tools -> Options -> Text Editor -> C/C++ -> Formatting you can change Inactive Code Opacity Percent . The default is 65, change it to something higher.
Or
Just set the Disable Inactive Code Opacity to True if you want to completely undo it.

enter image description here

+8
source

All Articles