找不到“命名规则”的设置在雷沙珀!
我厌倦了 Reshaper 抱怨我命名为“varID”的任何变量更改为驼峰式命名法(即“varId”)。
因此,我尝试在 Resharper 中添加一条规则
Edit 'Local Variables' Rule Settings
,并使用“ID”设置“名称后缀”,它不再抱怨。现在,如果我有一个变量“varID”,它会抱怨并建议将其重命名为“var”。但是当我检查/编辑规则时,我原来的规则不再存在。
注意:我没有编辑现有规则,以防您建议我检查该规则。
有人有什么想法吗?
I got tired of Reshaper complaining on any variables I have named as "varID" to change to Camel Case (i.e. "varId").
So I tried to add a rule in Resharper under
Edit 'Local Variables' Rule Settings
And set the "Name Suffix" with a "ID" and it stopped complaining. Now, if I have a variable as "varID" it will complain and recommend it be renamed to "var". But when I inspect/edit the rules, my original rule is no longer there.
NOTE: I didn't edit the existing rule in case you suggest I check that.
Anyone have any ideas?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我会撤消名称后缀更改。然后去
Resharper->选项->命名样式(在语言/通用下),然后单击高级设置。
在底部的缩写列表中是您要添加 ID 的位置。然后它应该停止抱怨变量名、属性等中使用的 ID。
I would undo the Name Suffix change. Then go to
Resharper -> Options -> Naming Style (under Languages/Common) and click Advanced Settings.
In the abbreviations list at the bottom is where you want to add ID. Then it should stop complaining about ID being used in variable names, properties, etc.
如果您想禁用“命名规则”:
If you want to disable 'naming rules':