Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't find settings for "naming rule" in Resharper!

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?

like image 390
pghtech Avatar asked Jan 18 '11 19:01

pghtech


1 Answers

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.

like image 164
Brandon Avatar answered Jan 02 '23 18:01

Brandon