Rider codestyle templates collections for popular and common styles

Is there a way to preconfigure the rider codestyle templates to match those of common / standard team patterns, or a repository to select from or download styles? E.g. make my code look like the .NET Core teams code?


Comment actions Permalink

Hello Pieter, thank you for your question. Please take a look at the following:

Out of the box, JetBrains Rider comes with the default set of preferences, which are based on conventions and best practices in the .NET world. These default settings are hard-coded in the product and you can always reset to the defaults if necessary.


Please let me know if you have any questions.

Comment actions Permalink

Ok, I guess what you call "conventions and best practices" are not quite what I experience, e.g. take some .NET Core code, and run a complete Rider refactor using default settings, the result looks quite different to what the .NET Core team produces.


But anyway, I was hoping that there is a collection of premade templates to use, will just modify the layers as we see fit.

Comment actions Permalink

@Pieter, thanks for the reply. You can change the default code style settings in Rider settings -

File | Settings | Editor | Code Style for Windows and Linux

JetBrains Rider | Preferences | Editor | Code Style for macOS

Could you pelase describe your original task? Do you want to use different settings for different solutions?


Please sign in to leave a comment.