使用ReSharper时,系统自带的方法含有下划线,就会提示
Name 'button1_click' does not match rule 'Methods, properties and events',Suggested name is 'Buttion1Click'
解决方法:
ReSharper->Options->Languages->Naming Style. 选择Advanced settings,在Event subscriptions on后面的文本框中输入$object$_$event$,保存即可
当自定义类名含有下划线时,会提供
Name 'jdc_step' does not match rule 'Types and namespaces'. Suggested name is 'jdcstep'
解决方法:
ReSharper->Options->Languages->Naming Style. 选择Advanced settings,选择上面Add,左边选择默认的class,右边根据自己的习惯选择Name Style的大小写及格式,保存即可