14
votes

I´m using Visual Studio 2012 Ultimate version 11.0.51106.01 Update 1. I configured black as background color and white as foreground color but C# collapsed regions are appearing with a black foreground, making it invisible. How can I correct this?

Expanded regions with the correct colors:

expanded region

When collapsed, the region becomes invisible (black foreground and black background):

collapsed region

2
Set the colors of display item "Collapsed text (Collapsed)"Hans Passant
Have you seen this collection of VS color schemes? studiostyl.es It might be easier to use existing theme than create your own.Iarek
I tried to set foreground color of "Collapsed text (Collapsed)" to white but the result is the same, collapsed regions with black foreground. I already tried to set colors for several items, but no luck.Bolha
It seems to be a vs 2012 issue, the "Collapsed text(Collapsed)" option works in vs 2010, but not in vs 2012. The studiostle.es is nice, but when settings are imported in vs 2012 the problem remainsBolha

2 Answers

20
votes

I had the same problem. I found that "Collapsed text (Collapsed)" does indeed work. The trick is that you have to restart Visual Studio for the changes to be applied. I'm not sure why this is the case (since all other color changes happen immediately), but I've verified it by changing it a couple of times.

I've tested it using both the built-in UI, as well as the Visual Studio 2012 Color Theme Editor extension. Both cases require a restart (though I can't be sure if merely having the extension installed is causing it to behave poorly).

0
votes

If you don't want to restart VS, just create a custom color for the "Collapsed text (Collapsed)" as described by ijprest. This works for VS 2015. However, if you select one of the preset colors, you still have to restart VS.