Custom prefix/suffix in certain cases

Hi all,

I really like the Inconsistent Naming feature of Rider. However there are times I want a specific prefix or suffix on a field, property or method that breaks these rules. For example a static list that only stores temporary values, I like to use:

public static readonly List<Player> _field_TEMP = new List<Player>();

Or a method that only runs on the server:

public void Method_SERVER() { }

I don't like cluttering with single-line ignore comments. Is there somewhere to add these suffixes so they're ignored?


Comment actions Permalink

Hi Adam,

Yes, you can add such rules on File | Settings | Editor | Code Style | C# -> Naming settings page. Here you can find more about naming rules in Rider.

Hope it helps!

Comment actions Permalink

Hi Julia,

That's great, thanks for the reply!


Please sign in to leave a comment.