This Question is Not Answered

1 "correct" answer available (4 pts) 1 "helpful" answer available (2 pts)
2 Replies Last post: Feb 27, 2013 2:46 PM by James Hartmann  
James Hartmann Newbie 6 posts since
Nov 21, 2012
Currently Being Moderated

Feb 13, 2013 1:15 PM

Naming Rule / ALL_UPPER

 

Hello,

 

we have a little problem with the naming rule setting ALL_UPPER in R#:

 

When we write a constant variable like this:

 

internal const string B2MML_SUBLOT_PREFIX = "H";

 

R# suggests to rename this variable to

 

internal const string B2_MML_SUBLOT_PREFIX = "H";

 

The problem here is that we would like to have that all constants are written ALL_UPPER, but also with numbers. So for us,

 

internal const string B2MML_SUBLOT_PREFIX = "H";

 

would be correct since all letters are ALL_UPPER. Is there a way to define that numbers are also accepted within the ALL_UPPER?

 

Kind regards

Alex Berezoutsky JetBrains 472 posts since
Feb 18, 2011
Currently Being Moderated
Feb 20, 2013 3:57 PM in response to: James Hartmann
Re: Naming Rule / ALL_UPPER

Hi James,

 

It can be achieved via Advanced Naming Styles. I've attached image with settings for a reference.

 

Please note, that the B2 prefix is hardcoded in this naming style; if it's not possible to use it in your scenarios, I'm afraid there is no other way to configure it in ReSharper at the moment.

 

Please let me know if it helps.

Thanks!

Attachments:

More Like This

  • Retrieving data ...