After certain R#-recommended edits R# colors the background of blocks of code in a light royal blue and also places a mark next to the scroll bar with the same color. It is not an error or even a suggestion. It seems to be a temporary flag that clears if you close and reopen a file.
Steps to recreate:
Does anyone know the meaning/usefulness of this "flagging"?
EDIT: My Resharper version is 4.5 running in VS 2005
Syntax highlightingReSharper extends the default Visual Studio's symbol highlighting. Additionally, it highlights fields, local variables, types, and other identifier with configurable colors. For example, ReSharper syntax highlighting allows you to easily distinguish between local variables and fields in your code.
Syntax highlighting determines the color and style of source code displayed in the Visual Studio Code editor. It is responsible for colorizing keywords like if or for in JavaScript differently than strings and comments and variable names.
I've verified the behavior that you're seeing in R# 4.5 VS 2008 (build 4.5.1274.1). I've gone through the ReSharper specifc colors in Tools->Options->Environment->Fonts and Colors and found this to be "ReSharper Highlight". I searched the ReSharper defect tracking for "remove declaration" and found this report:
RSRP-68435
A "remove declaration" fix appears for the declaration of test. Selecting this removes the declaration, but ends up coloring the then and else clauses of the if statement blue and adds blue bars to the error strip.
The Jetbrain's answer is:
This fix works as designed. Removing declaration can break code, so all broken usages highlighted and you can navigate them and fix or remove code. Only simple expressions are removed automatically (strings, numbers).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With