We have a style rule that requires 'using' statements be 'inside' a namespace declaration in a class. I cannot find where to set my automatic references from the code editor so that any 'using' statements which are added will be inside the namespace rather than at the top of the page. In Settings there is Code Style | C# | Code Style | Reference Qualification but those settings do not deal with placement in the file.
Is this possible, where?
I found the answer @ https://rider-support.jetbrains.com/hc/en-us/community/posts/360001334920-Optimize-imports-add-reference-option-to-put-using-directives-inside-namespace
File | Settings | Editor | Code Style | C# | Code Style | Reference Qualification | Add 'using' directive to deepest scope
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With