ReSharper naming style for event methods

Resharper does not detect if the method was created by the user or VS. it always highlights the event methods generated by VS that have an underscore in them (e.g. button1_Click() even).

How can I make an exception in this case?

+4
source share
1 answer

On ReSharper | Options | Languages | C# | Naming Style ReSharper | Options | Languages | C# | Naming Style , check the Override General Settings box, then click "Advanced Settings."

Then you should have this in your subscription to events by field: $object$_$event$ . Click OK on both windows and you will go well.

+8
source

Source: https://habr.com/ru/post/1386943/


All Articles