Unable to find settings for "naming rule" in Resharper!

I'm tired of Reshaper complaining about any variables that I called "varID" to go to Case Camel (ie, "varId").

So, I tried adding a rule to Resharper under

Edit 'Local Variables' Rule Settings 

And set the “Suffix name” to “ID” and it stops complaining. Now, if I have a variable like "varID", she will complain and recommend renaming it to "var". But when I check / edit the rules, my original rule no longer exists.

NOTE. I did not edit the existing rule in case you propose to verify this.

Does anyone have any ideas?

+4
source share
2 answers

I would undo the suffix name change. Then go to

Resharper -> Options -> Naming Style (in the Languages ​​/ General section) and click "Advanced Settings".

In the list of abbreviations at the bottom, you want to add an identifier. Then it should stop complaining about the identifier used in variable names, properties, etc.

+9
source

If you want to disable "naming rules":

  • Go to "Reshaper -> Options -> Code Verification -> Verification Level.
  • Use the search box to search for "inconsistent name".
  • Change the value of the drop-down list to "Do not show."
+4
source

Source: https://habr.com/ru/post/1336037/


All Articles