views:

31

answers:

3

Here is my scenario. I like my color scheme. I have a dark blue background with light grey text. I have the Plain Text option in VS 2010 in Tools | Options | Environment | Fonts and Colors set to be a dark grey for the foreground and dark blue for the background:

alt text

But I need to fix this major problem/annoyance which is when I highlight some text and then lost focus with my mouse it turns almost completely white!

alt text

And worse, when I mouse over the little section lines of code on the left, the selection of the entire editor goes white with a light grey foreground for text:

alt text

Not able to figure out where and how to fix this. I don't see a way. Note: I'm using R# 5.0+ so I don't know if that has anything to do with this color issue or what...maybe it's overriding some VS stuff or this is just a VS issue I don't know..probably just not looking in the right area under Fonts and colors...but a lot of the item foreground elements are read only.

UPDATED:

I think it might be (not sure) this one but I can't test it as the foreground is locked and not editable:

alt text

+1  A: 

I'm pretty sure your first problem can be solved by setting the colors on the 'Highlighted Reference' option in the Fonts and Colors window. If ReSharper is override this setting I couldn't tell you. I don't have it installed on this machine. As for your second problem I have no idea.

If you get too irritated at trying to figure out the color options you could also try Studio Styles for pre-made ones. I believe that is where I got the one I use currently.

Sean Copenhaver
I did not see that R# is overriding..but who knows. I don't see in the R# menu anywhere that sets a color like this outside of VS's color settings.
CoffeeAddict
Yea prefer to use my own styles but thanks. Will check that out.
CoffeeAddict
A: 

ReSharper is indeed overriding some of your settings, but those settings can be found in the same screen, towards the bottom of the listbox.

In Tools | Options | Environment | Fonts and Colors, scroll to the bottom of the 'Display Items:' listbox, and you should see a series of settings that start with ReSharper. For instance, the 'ReSharper Current Line Highlight` was causing me issues when I changed my theme to use a dark background.

Hope that helps.

Brandon Satrom
thanks. Well this particular issue isn't the R# Current Line Highlight...so still trying to figure this one out.
CoffeeAddict
In fact -none- of the R# font and color options there is showing me a white background and very light gray foreground as you see happening in my examples there. I remember checking this before so maybe it's just somewhere else...I just cannot find it anywhere.
CoffeeAddict
Try the `Collapsable Region` setting. I was able to replicate and fix just now using that one.
Brandon Satrom
+1  A: 

The highlight for matching references is the "Highlighted Reference" background color (as Sean Copenhaver pointed out).

The highlight for the outlining region hover is "Collapsed Region" (as Brandon Satrom pointed out in his comment on the original question). The foreground color is the color used in the outlining margin and the background color is the color used under the text. You can also disable that highlight by disabling Tools->Options->Environment->General->Enable rich client visual experience, though that will disable other things (animations, gradients, etc.)

The brace matching rectangle is the highlight that appears when you insert or put the caret on a brace (e.g. ")", "]", "}"). It only lets you override the background color because you can't use it to change the foreground (text) color.

Noah Richards
When I look at the Highlighted Reference foreground and background colors they are not what I'm seeing above. I've looked at every property in that list so far and like I said the only one that I can see has that white background / light gray foreground is Collapsable Region..that's it! that's the only one and I can't change it to try to see if that fixes it. If you're saying it's these other ones, well the color schemes on them do not fit what I see at all when I look at them in Tools / fonts and colors...for the Text Editor template
CoffeeAddict
If you want me to send the actual settings for vs 2010, specifically my color scheme that I created I can. Note that I also have R# 5.0+ installed so you'd have to install that to replicate the exact environment I have.
CoffeeAddict
If you think it's R# related, you should probably ping them for help (and/or make it very clear in the question title that this is a resharper question). It's quite possible Resharper has placed a different item in that list that you can modify for the highlighted region, but I don't know what that is. Also, are you saying that you can't change the Collapsible Region background/foreground? Those are both editable in normal VS (and in Brandon's as well, from his comment), so you may want to ask resharper about that as well.
Noah Richards