Resharper Suggestion Color Issue

旧巷老猫 提交于 2020-01-06 08:21:14

问题


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?


回答1:


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.




回答2:


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.




回答3:


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

Maybe this is a known bug/fix/tweak?



来源:https://stackoverflow.com/questions/1766810/resharper-suggestion-color-issue

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!