Environment Setting for Highlighted Variable in Visual Studio - visual-studio

Environment Fonts and Colors (Where's the one I'm looking for?)
I noticed that VS has a feature that if you click on a variable, it highlights all instances of that variable in your current file.
With my color scheme (a dark background with light text) it makes the highlighted variable very unreadable. I've gone through and tried to figure out which setting under "Environment Fonts and Colors" controls the background color of the highlighting, but I'm not having any luck. Can someone point me in the right direction?
So, in one sentence:
What in the list of "Environment Fonts and Colors" controls the highlighting that happens when you click on a variable?

It's called Highlighted Reference
Tools > Options > Env > Fonts and Colors > Text Editor > Highlighted Reference
And the result is:

In my case, I had to change Fonts and Colors > Text Editor > Match Color:

Highlighted Variable color change in Visual Studio
Tools >
Options >
Environment>
Fonts and Colors ->
Text Editor -> Highlighted Reference
Setting Page
Variable highlight
Then check it you will get color change.

Related

Changing CLion's background color

I'd like to change the general background color of CLion (that is, outside of where you write code), but I have been unable to find a solution neither in the IDE itself nor online.
However, changing these colors should be possible, as switching the color theme does change them.
Here is an image of what I mean, I've marked the respective areas I would like to change the color of with a bright pink circled x:
Any help on where I could find these settings would be much appreciated.
EDIT: I already know where to change Fonts, text colors and the like, but I am looking specifically for the marked areas, changes for which do not appear under any of the Color Scheme Options.
You cannot customize the colors of the main interface except for choosing the Default and Darcula themes in Appearance and Behavior - Appearance. What your and the other answer's screenshot shows are the EDITOR color scheme settings.
You can set a background image for the whole IDE in general in that settings tab, though. Make it completely opaque, the color you like, and that might do it.
To configure colors and fonts
Press Ctrl+Alt+S or choose File | Settings (for Windows and Linux) or CLion | Preferences (for macOS) from the main menu, and then go to Editor | Font.
Select the desired scheme from the Scheme name drop-down list.
Under the Color Scheme node, define the font families used in the editor and in the console. When you open the Font page, or Console Fonts under the Color Scheme node, CLion displays the Editor Font area where you can configure the primary and secondary fonts, their size and line spacing.
Under the Color Scheme node, open the corresponding pages to configure specific color preferences for the supported languages and CLion components.
To navigate to the relevant Colors & Fonts settings for the symbol at the caret
Call Help | Find Action from the main menu (or press Ctrl+Shift+A) and choose Jump to Colors and Fonts:
Explore the relevant section of the Colors & Fonts settings for the symbol under the caret:
If you want to know more about configurations : Configuring Colors and Fonts

How to change highlighting color in Visual Studio using ReSharper?

Where my arrow is pointing I have seen various people who have changed the color of the highlight to blue or cyan or some other color that is easier to see and "pops out" more. I have tried searching on stack overflow and the internet and have been unsuccessful at finding how to change this specific thing rather than changing the entire color of all highlighting text. Basically when you click next to an end brace or beginning it highlights the other one but in my case its grey and I would like it to be blue or something better. How do I do this? Sorry I don't have enough reputation to post the image in this specific post.
I looked through Tools > Options > Fonts and Colors for nearly every option and changed lots of things around, but nothing changed the way it highlights those braces when you click next to one. I was able to successfully change the color it highlights it but the second I release my mouse it changes back to grey.
Tools > Options > Environment > Fonts and Colors
Resharper Brace Outline
Resharper Matched Brace Items
To change whether to display color or outline, go to Resharper Options:
Resharper > Environment > Editor > Highlight with [x] color [ ] outline
ReSharper Help/Highlighting Matching Delimiters

How to customize the VS2015 Method Signature Pop-Up's Text Color?

I've started using Visual Studio 2015 and one thing I've noticed is the new fancy rich-text formatted Preview functionality when hovering over a Method, .ctor, Property etc (compared to the bare tooltip I see in VS2013), which looks for example like this (mouse cursor is not shown here):
However, this is, most likely due to my general text color & font customization, in parts barely readable.
Does anyone know what's the correct name and category for this enhanced ToolTip is in VS's Tools > Options > Environment > Fonts and Colors?
The tooltip code colors correspond to the colors you have set for the editor window. The white you see is the same as you see in the editor.
You might want to change the tooltip background color instead to something darker.
You want to change the 'Editor Tooltip'
Use these steps:
Options -> Environment -> Fonts & Colors
Show settings for: Editor Tooltip
Adjust 'Plain Text'

Trouble identifying colors for Intellisense tool tips and mouseovers in Visual Studio 2013

I've installed the color theme customization plug-in for Visual Studio 2013, and am having difficulty identifying and changing the background and foreground colors for Intellisense areas displayed on mouse-over events.
A screen shot is below showing the two areas that I'm struggling with. The top shows the helper dialog which appears when I delete and re-add the opening parentheses next at the line showing "#Html.PropertyFor(". Either I need to adjust the foreground color for the very light grey text, or change the background to something darker than the off white.
The second picture shows a typical Intellisense box. But the contrast on that is too low, so I need to either make the foreground text lighter, or the background box lighter.
After searching in the theme editor for quite some time, I'm unable to isolate these settings. I also inspected several settings under Tools > Options > Environment > Fonts and Colors, but was unable to identify these specific foreground/background combinations in the intellisense tool tips. I need assistance fixing both of these areas. Thanks for your help.
=== Edit 12/2/2014 at 4:33 PM ===
I found part of the solution. To make the text lighter, select Tools > Options > Environment > Fonts and Colors. Then toggle the Show Settings For list to "Editor Tooltip". You can change the "Plain Text" foreground color. But the background color cannot be edited. So I changed the foreground to white. This helped with case 2 shown above.
But with case 1, where there is a highlighted line for the available method overloads, that text still has a white background. I still need a solution for that. How can I make that white background dark? Thanks.
=== Edit 7/24/2015 8:00 AM Central ===
Joe, thanks for your suggestion. Yes, I have Productivity Power Tools installed. After turning "Colorized Parameter Help" off, the hint shown in the first graphic above went completely white. Probably that's because I have the foreground color set to White (ala Tools > Options > Environment > Fonts and Colors). Here is an example.
So I turned "Colorized Parameter Help" back on, and this is what it looks like for me right now.
This is at least legible, though the colorization is gone. I still don't know how to make that white background dark in that specific dialog. Since I can at least read the text with the workaround, this is a low priority item. What I imagine is that the ability to tweak that setting just doesn't exist within the color theme customization plug-in.
Do you have the Productivity Power Tools add-in installed? If so, either remove it or set Colorized Parameter Help to off under Tools > Options > Productivity Power Tools.

How to locate the formatting of a line in the Options/Fonts and Colors dialog?

I am using Resharper 6.x with VS2010. One of the features is that if you double click on a variable, it is highlighted and then other usages of the variable are highlighted, like so:
The background and foreground colors of the highlighted variable are too close to each other and I am trying to change it in the Options/Fonts and Colors dialog. It has a small Sample window (below). I've gone through the entire list of display items and can't find the one matching what I see in the coding window.
So 2 questions:
Which display item should I change to affect the back/fore colors of the highlighted variables?
Is there some tool that that will point me to the display item in question for any piece of code?
P.S. I am using the Ragnarok as my base color theme.
P.P.S. This may have nothing to do with Resharper. I turned it off and the coloring was still there. I guess my original question still stands - how to affect the colors of the highlighted variables.
Visual Studio 2010 Reference Highlighting
As you already presumed: The reference highlighting of current selection is not a ReSharper feature but a VS 2010 feature. So you need to look at VS items in Fonts and Colors dialog.
The right display item is Highlighted Reference.
ReSharper Reference Highlighting
ReSharper's equivalent is Highlight usages in file by pressing Shift+Alt+F11.
Then all read references have light blue background color (related display item in Fonts and Colors dialog is ReSharper Read Usage).
And all write references have rose background color (related display item in Fonts and Colors dialog is ReSharper Write Usage).
But the disadvantage of ReSharper's reference highlighting is that you need to press a shortcut. VS does the highlighting automatically.

Resources