Changing bg color of the matching preprocesor #ifdef section blocks

Hello,

After the latest ReSharper update (C++ 2019.2.20191016.62802) I've got these nice highlights of matching #if #ifdef #ifndef blocks, too bad  they are giving me eye bleeding.

I've been digging through all the color settings in Visual Studio to find them and change their background, with no luck. Can someone point me to the coloring label for these blocks or for a way to disable them?

 

Thank you

3 comments
Comment actions Permalink

Hello,

You can use the "ReSharper Parameter Name Hint" color setting to change the color of the inlay hints. If you want to disable them, just right-click on the hint and there will be an option there. 

Note that if you choose the "Dark" color theme in VS, the color of the hints is changed accordingly. Here's how they look with default "Dark" colors:

0
Comment actions Permalink

Hi Igor,

Thank you so much for the info. If set to a custom color it works correctly and all is well, my eyes are thanking you.

As a bit more info for you, I am not using the default Dark Theme, maybe that's where the conflict lies.

Oddly enough the default color in settings seems indeed to be closer to what you have shown. There must be a conflict arising between the settings and the editor with the "Default" color as it's not looking like that. Maybe that "Default" color is a reference to something else which is that bright grey in my case in the editor. This was the setting I had with the first screenshot. Hope it helps.

 

 

0
Comment actions Permalink

The name of the color setting is a bit misleading. The hints were originally used only for parameter names, but now there are many more kind of hints - namespace, directive, and type name. We'll probably change the name of the color to something like "ReSharper Inlay Hint" in the next release.

0

Please sign in to leave a comment.