English 中文(简体)
Resharper Suggestion Color Issue
原标题:

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?

最佳回答

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.

问题回答

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.

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

Maybe this is a known bug/fix/tweak?





相关问题
Manually implementing high performance algorithms in .NET

As a learning experience I recently tried implementing Quicksort with 3 way partitioning in C#. Apart from needing to add an extra range check on the left/right variables before the recursive call, ...

Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

How do I compare two decimals to 10 decimal places?

I m using decimal type (.net), and I want to see if two numbers are equal. But I only want to be accurate to 10 decimal places. For example take these three numbers. I want them all to be equal. 0....

Exception practices when creating a SynchronizationContext?

I m creating an STA version of the SynchronizationContext for use in Windows Workflow 4.0. I m wondering what to do about exceptions when Post-ing callbacks. The SynchronizationContext can be used ...

Show running instance in single instance application

I am building an application with C#. I managed to turn this into a single instance application by checking if the same process is already running. Process[] pname = Process.GetProcessesByName("...

How to combine DataTrigger and EventTrigger?

NOTE I have asked the related question (with an accepted answer): How to combine DataTrigger and Trigger? I think I need to combine an EventTrigger and a DataTrigger to achieve what I m after: when ...

热门标签