Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ReSharper naming style for event methods

Tags:

c#

resharper

Resharper does not detect if a method has been generated by user or VS. it always highlights event methods generated by VS which have underscore in them (like button1_Click() even).

How can I make an exception in this case?

like image 398
Saeid Yazdani Avatar asked Feb 23 '23 02:02

Saeid Yazdani


1 Answers

On ReSharper | Options | Languages | C# | Naming Style check Override common settings, then click on Advanced settings.

Then you should have this on Event subscription on fields : $object$_$event$ . Press OK on both windows and you are good to go.

like image 145
Ufuk Hacıoğulları Avatar answered Feb 24 '23 16:02

Ufuk Hacıoğulları