如何使 Resharper Add-on 接受 RequestID 作为参数而不是 RequestId
给定以下函数:
public SomeClass(int RequestID)
{
// blah
}
Resharper 抱怨我的参数应该是 requestId
(这首先没有意义,因为 .NET API 大多数时候使用 UpperCamelCase
我进入配置并将 lowerCamelCase
更改为 UpperCamelCase
。
现在 Resharper 抱怨它应该是 RequestID
。 >RequestId 好一点,但我是那种喜欢 ID
而不是 Id
的人,有人对此进行了配置修复吗?
Given the following function:
public SomeClass(int RequestID)
{
// blah
}
Resharper complains that my parameter should be requestId
(which doesn't make sense first of all, because the .NET API uses UpperCamelCase
most of the time for their public methods. I went into the configuration and changed the lowerCamelCase
to UpperCamelCase
.
Now Resharper complains that instead of RequestID
, it should be RequestId
. Thats a little better, but I'm the kind of guy that likes ID
and not Id
. Anyone got a configuration fix for this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
将 ID 添加到缩写列表。 Intellisense 菜单应该有该选项。
要管理您的缩写,请转至
Resharper ->选项->语言 ->常见->命名风格 ->高级设置..
Add ID to the Abbreviations list. The Intellisense menu should have that option.
To manage your abbreviations, go to
Resharper -> Options -> Languages -> Common -> Naming Styles -> Advanced Settings..