Disable Resharper with comment

Edit: The problem is resolved by updating.


Resharper really annoys me and the marking code, which is 100% correct, as incorrect, it continues to change me from Action to Action<T1,T2...Tn> when this is clearly wrong. It blinks every time I print something, so it's really distracting. Is there a way to disable resharper completely between two comments? Or how do you turn off just this warning?

alt text

Edit: There is no hint on the left to disable this using comments.

The menu that appears when you press Alt + Return :

alt text

Edit: I found a solution, just wrap offensive lines of code in #region RFail and #endregion . Not perfect though.

+4
source share
2 answers

RESharper - Options

  • Code check
  • Settings
  • Uncheck the box (Show the "Import namespace" action using the pop-up window)

Disables warning.

+1
source

If you click on the context menu that ReSharper appears in the left edge of the editor window, it will offer you to either wrap the violation code in a suitable comment or configure a parameter for this type of notification.

0
source

All Articles