How to switch to c# conventions instead of Unity?

The rider uses unity conventions, which I dislike for numerous reasons. I checked Rider settings and I can confirm that the c# code style looks correct, however, it still uses unity conventions. How can I switch to the c# code style?

0
3 comments
Hello,

could you please provide some examples of the conventions you're referring to? Screenshots or code snippets will do just fine. 

Thank you in advance.
0

c# conventions (I use)

private int _numer = 0;

 

unity conventions (Rider recommends using)

private int number = 0;

0

Hello,

Thank you for the details.

With the default settings, Rider will suggest to rename field _number to number only when the field has a [SerializedField] attribute, it is controlled by Preferences | Languages & Frameworks | Unity Engine | Serialized Field Naming Rules settings. Other naming conventions can be customized in Preferences | Editor | Code Style | C#

Let me know if you have any other questions!

0

Please sign in to leave a comment.