Just an idea for discussion. It happens all the time, that change of code
creates error/warning (or Nerpa suggestion) highlight in nearby code. For
example, consider the following code:
string b = "foo";
b = "bar";
If I add "const" keyword before "string" - I get error highlight, but I can't
see its text, because it is on different line. I have to either move caret
to it to see it in status bar (caret & eye move) or use mouse to hover over
highlight (move hand from keyboard to mouse). It would be really nice, if
Resharper could show text of nearby highlight in a popup-style window somewhere
near the current caret position. So after I have (| is caret)
const |string b = "foo";
b = "bar";
I immediately see text "Readonly local constant cannot be used as assignment
target" somewhere around. (Btw, message seems to be a little clumsy, constant
is always readonly).
Ideally, it would show tooltip only for new highlights. Also, it would be
nice to indicate real position of an error. May be just show tooltip below
(if caret is above highlight) or above (if caret is below) actual error position.
What do you think?