使用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的大小写及格式,保存即可

相关文章:

  • 2022-12-23
  • 2021-11-23
  • 2021-10-22
  • 2021-08-01
  • 2021-11-19
  • 2021-06-04
  • 2021-11-14
  • 2021-11-26
猜你喜欢
  • 2021-12-05
  • 2022-12-23
  • 2021-09-01
相关资源
相似解决方案