Resharper Suggestion Color Issue

2019-08-24 01:50发布

I have a strange bug in resharper 4.5 in VS 2005. Instead of doing the usual underline for a suggestion -- IE: telling me that a using statement is unnecessary, it is setting the background to red in the same manner as a breakpoint. Here is a screenshot.

I have uninstalled and reinstalled several times, including an install of resharper 5.0 to no avail. I also went into the fonts/color section in the options and have set the Resharper options to standard squiggly underlines. I have also tried resetting the colors to default, and I also tried deleting my .resharper files and .suo files out of desperation.

Has anyone run into this issue? Are there any suggestions that I could try to reset resharper?

3条回答
Root(大扎)
2楼-- · 2019-08-24 02:15

This is a known problem which is actually caused by a bug in Visual Studio 2005. This bug is fixed in SP1, so please make sure you have SP1 for VS2005 installed.

查看更多
Viruses.
3楼-- · 2019-08-24 02:19

Have you tried the community forum for resharper? http://www.jetbrains.net/devnet/community/resharper

Maybe this is a known bug/fix/tweak?

查看更多
萌系小妹纸
4楼-- · 2019-08-24 02:39

What settings do you have in ReSharper | Options | Inspection Severity for "Redundant using directive"? Mine is set to "Show as warning" - however, this is mostly for the behaviour of the shortcut bar.

The using statement is coloured as per the "ReSharper Dead Code" value in Tools | Options | Fonts and Colors - what's this set to? Mine has Item foreground" set to a grey, and "Item background" set to "Default".

The .resharper files are for project specific settings, and the .suo file are nothing to do with this either. The ReSharper configuration is stored in an XML file in your local profile (AppData/Application Data/etc depending on OS).


Edit to respond to comment

Hmm. I'd say you have something wrong with your install then - ReSharper 4.5.x on VS2008 has some 40 items on the Text Editor section of Fonts and Colours, up from just over 30 in 2.0 on VS 2003 - both of which have "ReSharper Dead Code" as an option.

查看更多
登录 后发表回答