Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"Remove unused using statements"... but keep a few default ones [closed]

Does anyone know of an automated way to remove unused using statements from C# files, but keep certain ones that the developer specifies?

like image 945
Vimes Avatar asked Oct 20 '25 18:10

Vimes


1 Answers

CodeMaid has a feature for this purpose. It's a free Visual Studio extension. Once it's installed, you can specify the using statements that you will always want to keep.

enter image description here

like image 111
Vince Avatar answered Oct 23 '25 06:10

Vince



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!