Create project / classes without newest C# features
So without going into details about the project itself, I need to be able to create projects without the default file scoped namespaces and global usings.
Also when I create a new class it gets a file scoped namespace by default... I've not found any setting that could change this behaviour.
Please sign in to leave a comment.
Hello Glen,
Thank you for contacting Rider support.
Regrettably, it depends on project templates and can not be modified. However, there are the following options to solve this problem:
Also, to create new classes with block-scoped namespaces, please set the `File | Settings | Editor | Code Style | C# | Syntax Style | Code Body | Namespaces` option to `Block-scoped`.
Hope it helps. Have a nice day!
That was actually very helpful, thanks.
Hello Glenn,
I am happy to hear that I was able to help.
Should you have any other questions or difficulties in the future, do not hesitate to contact support.
Have a nice day!