vorou
vorou

Reputation: 1909

Could ReSharper highlight errors instead of underlining them?

R# has two ways of notifying me of problems in my code. One is highlighting the whole text, which I love and which could be seen from the far end of the room:

i

And the other is ugly curly underlining:

i

And so far I haven't found the color which make the second one at least close in its visibility to the first one. It's just invisible on the dark background.

I also know that first one (nice) is called Resharper Error Highlighting and the second one is Resharper Underlined Error Highlighting.

Could R# always be nice and highlight the errors so I could see them?

Upvotes: 1

Views: 548

Answers (2)

hypersw
hypersw

Reputation: 483

Class names are colored as classes, methods as methods, string as strings, and so on — and if some word does not look like any of those, then R# paints it red to indicate that it can't understand the reference. Once the reference is known, it gets colored after to its kind.

If there're further errors, they're wavy-underlined without spoiling the text color. There might be looong highlightings, and usually we don't want the text under them to look all plain red. Also I believe the errors shan't be standing out too much, or they will distract from the text one is trying to correct. Why, if the error is under the caret, you'll see it anyway. And if it's not, you often don't care looking at it until you jump there with Alt+PgDn or Alt+Shift+PgDn or by clicking the error indicator at the top-right corner.

What is the scenario for seeing all the errors?

Making the wavy underline brighter is a viable option though. Should we have an option to make the line thicker? Or maybe make a transparent red overlay?

Upvotes: 1

citizenmatt
citizenmatt

Reputation: 18583

Unfortunately, you can change the colours for the underlines, but not how it affects the text, because it doesn't touch the text - it only draws the underline.

(And I've kicked off an internal discussion as to why we have two different ways of showing errors.)

Upvotes: 1

Related Questions