Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

JetBrains Rider import reference inside namespace

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?

like image 292
Redeemed1 Avatar asked Oct 28 '25 14:10

Redeemed1


1 Answers

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

like image 153
Redeemed1 Avatar answered Oct 30 '25 13:10

Redeemed1



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!