How to allow small letters in camel case names?

Hi,

I want to use the abbreviation 4m (4 meters) in my variable name. Does anybody know how I can tell Rider to allow this?

Note: When using multiple uppercase letters I can define an abbreviation in Rider. But this is not possible for lower case letters, right?

It seems to come from Roslyn code analyzer:

I can disable it through Resharper setting:

1
4 comments

Hello Dennis,
Could you please clarify this: "When using multiple uppercase letters I can define an abbreviation in Rider."? I have the same warning about "4k" abbreviation in variable names with both UpperCamelHumps and lowerCamelHumps. So it seems that the only way to make Rider ignore such naming would be to disable an inspection, just like you mentioned.

0
Avatar
Permanently deleted user

Yes, here is a sample:

I was expecting to be able to define such an abbreviation for 4m / 5m / 6m.

0

I see, yes, in Rider you can only add only uppercase abbreviations.

0

Sorry for the necro bump.
For someone coming from search like me, here's an issue that would be related, though all lower case acronyms weren't explicitly specified: https://youtrack.jetbrains.com/issue/RSRP-152971

0

Please sign in to leave a comment.