Namespace is project_name, should be project_name.path.to.file for new files

Hi,

could someone please direct me which setting to change so that when I create a new *.cs file at project_name/path/to/file/ it has namespace "namespace project_name.path.to.file"? Right now I get “namespace project_name”.

Kind regards,
Diana

0
2 comments

Hello Diana, 

Thanks for contacting Rider support. 

To enable folder-based namespace, please go to Settings | Editor | Inspection Settings, then check “Enable folder namespace provider”

For existing namespaces that you need to adjust, you can follow Synchronize namespaces with the project structure.

Let me know if you have any questions. 

 

Thanks,

Tom

0

Thank you.

Kind regards,
Diana

0

Please sign in to leave a comment.