Weird code background color

Answered

Hi, I am using rider and sometimes it's coloring my code with some weird white background color:

Sometimes not all code will be colored, like in this picture (the method head and one of the curly brackets is not colored for example...)

How do I remove it completely?

0
7 comments

Hi Nimrod m

What themes in `File | Settings | Appearance & Behavior | Appearance` and `File | Settings | Editor | Color Scheme` do you use? Don't you notice any special actions before this happens? Do you use any additional plugins? 

Thank you in advance! 

0

Hi Alexandra Guk!

I didn't do anything special there, I am using visual studio dark, and changing it to something else in both places you mentioned did not change anything.

I can confirm I saw this behavior in Blazor which seemed fine over there but for some reason, I see this now when working on a simple class lib project. So maybe it came from there? 

Thanks for your help!

 

Edit:  don't remember doing anything special and also I don't use any special plugins.
Let me know if you need any specific info on my settings/plugins

0

Hi, 

thank you. 

Could you please add any other samples of this so I can try to reproduce it? 

Could it be a selected Razor code block? You can check its colour set in `File | Settings | Editor | Color Scheme | ASP.NET`.  

Thank you! 

0

What do you mean by other samples? more screenshots?

It's not really the same as a Razor page code block layout:

I have no problem just resetting my settings while having them backed up but how do I do that?

0

Hi! 

Thank you for the screenshots, that's indeed what I mean. I'm not sure this is settings-relatest. Do you have Code Coverage enabled for mentioned solutions? 

0

Ha! nice one, it was indeed that, probably pressed Ctrl+U+K which enabled it.

Didn't know it was there until I looked for it

Thanks for your help!

0

Super! 

Thank you for keeping me posted. 

Should you have any other questions, let us know. Have a great day! 

1

Please sign in to leave a comment.