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?

 

3 comments
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.

https://www.jetbrains.com/help/rider/Sharing_Configuration_Options.html#layers

Please let me know if you have any questions.

0
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.

0
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?

0

Please sign in to leave a comment.