Disable Highlighting of Strings in Visual Studio - string

All of my strings in visual studio are highlighted (see screenshot)
This makes it very difficult when i'm actually highlighting something or using the find functionality.
I cannot find an option for this anywhere, anyone know how to disable this?
This is Visual Studio Community 2017

Go to Tools > Options > Fonts and Colors. On the Display Items, find String and change the Item background color to whatever the color of your editor background is.

Related

How can I find out exactly which rule is applying syntax highlighting to a particular code element in VS2022 with Resharper?

I'm running Visual Studio 2022 with Resharper (EAP) and the "Cyberpunk" theme from the VS marketplace (https://marketplace.visualstudio.com/items?itemName=T0uchM3.CTVS19)
Something is applying a white background to the syntax highlighting, but only on strings in JavaScript code which contain jQuery/CSS selectors - see this example:
Regular strings (e.g. the "click" in event handler declarations) are fine. I've been through the VS color list looking for anything with a white background but haven't found out where this is coming from.
Any way to highlight a code snippet and see what rules/plugins are applying syntax highlighting to that specific code snippet?
The specific setting here is Resharper Injected Language Background in Visual Studio Options > Environment > Fonts and Colors:
(Thank you #buhakmeh for figuring this one out!)

How to get Visual Studio 2012 to grey out ifdef instead of dimming it

In our code there are lots of passages that are ifdef'ed out. With the former version of Visual Studio, they had been greyed out. With Visual Studio 2012, however, they are no longer greyed out but dimmed, i.e. these passages appear with all the colours of the syntax highlighting scheme, but with less saturated colours. The programmer at Microsoft who implemented this must have thought this very cool, but in practise it makes it really hard to tell if a passage is active or inactive.
Has anyone found a way to tricking Visual Studio 2012 to using the old way of greying out inactive passages?
Thanks for any reply
You have an Opacity setting you can change:
In Tools -> Options -> Text Editor -> C/C++ -> Formatting
you can change the Inactive Code Opacity Percent. Default is 65, change it to something higher.
Or
Just set the Disable Inactive Code Opacity to True if you want to cancel this altogether.

Visual Studio 2012 colour theme format

I've found the colour theme settings for Visual Studio 2012 at HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\11.0_Config\Themes
I can duplicate a dark output window in the light scheme by copying the relevant key so this is definitely where the color comes from (you have to restart the IDE in-between changes).
I'm wondering if anyone is familiar with the format of the binary data in these keys?
Or the Common7\IDE\CommonExtensions\ShellColors.pkgdef file that they seem to be created from?
I've tried some experimentation with changing what I guess should be the colour values with without much success.
Try this theme editor I wrote that helps you modify the built-in colors of the Dark/Light themes. Most of Visual Studio's Windowing colors are in the Environment category.
More info here:
Modify Visual Studio 2012 Dark (and Light) Themes
Visual Theme Editor 2012 Source Code

Moving from coderush to resharper

I am about to make the switch to resharper from coderush after using it for 30 days and have some questions I would like to see if I can get some help on.
1: Can you change the resharper code colors? I tend to prefer dark themes so I would like to be able to migrate to a dark theme once the change is complete.
2: Do any other addin provide the member icon paint functionality of Coderush? It is the only feature that I do actually miss as it is handy for scanning. I don't mind paying for the functionality if it works.
EDIT: Found out how to change syntax colors.
There's no direct replacement of "paint member icons" in ReSharper.
I suggest that you use the File Structure window instead, with "Track caret in editor" and/or "Automatically scroll to source" options on to synchronize between focus in File Structure and the caret in the text editor.
As to other VS plug-ins, to my knowledge there aren't any prominent plug-ins that have that - neither VS10x CodeMap nor Productivity Power Tools provide anything similar.
1: Can you change the resharper code colors? I tend to prefer dark
themes so I would like to be able to migrate to a dark theme once the
change is complete.
As well as being able to change Resharper colours (In Tools->Options->Fonts and Colours, look for the "Resharper *" related options), R# supports Visual Studio light and dark themes:
http://www.jetbrains.com/resharper/webhelp/Managing_Color_Themes.html

Change ReSharper's color scheme

Does anyone know how to change the ReSharper color scheme in VS2008 SP1?
I've looked around and all the posts out there on the internet pointed to dead-ends.
JetBrains at one point told users to change the colors inside VS (Tools | Options | Fonts and Colors | Text Editor) but I don't see any ReSharper items in there.
Reinstalling did not solve it for me. This is from ReSharper's support. Note: Run notepad as administrator.
http://resharper-support.jetbrains.com/entries/26859128-ReSharper-Fonts-Colors-settings-do-not-appear-in-Visual-Studio-after-installation
Problems:
ReSharper Fonts & Colors settings do not appear in Visual Studio
after installation;
Colors from Light Color Theme are used with a
Dark Color Theme;
Solution:
Close all Visual Studio instances;
Open C:\Program Files (x86)\Microsoft Visual Studio {VS version}\Common7\IDE\Extensions\extensions.configurationchanged file;
Type anything there;
Save the file;
Open VS and check Fonts and Colors in Tools | Options | Environment;
In VS|Tools|Options|Environment|Fonts and Colors, ensure the "Show settings for:" listbox is set to Text Editor and you will find the ReSharper items.
To change the font colors of identifiers, goto:
Resharper > options > code inspection > settting > checkbox
The color identifiers.
Thanks Colby! Re-Installing ReSharper took care of it.
For future reference, the complete scenario was:
I had a trial mode ReSharper installed, once the trial expired I purchased the license, I did not try to change the color scheme during the trial period, so I don't know if the options where there before.
After re-install I can go to Fonts and Colors and all the ReSharper options are there!

Resources