Closed jdx-john closed 1 year ago
Thanks for reporting the issue. Using statements are a special case that by default skip cleaning during automatic cleanup on save. This is due to some possible conflicts where updating using statements during a save event could trigger an infinite loop depending on configuration and other installed extensions.
If you want to change this behavior, there is an option at CodeMaid->Options->Cleaning->Visual Studio->Run remove and sort using statements->Skip during automatic cleanup on save that controls it.
Hope it helps!
I confirm this works as you describe - thanks. As far as I am concerned I will close it, unless the team deems it worth further attention.
Environment
Description
I have checked "Automatic Cleanup On Save" in Extensions->CodeMaid options
When I edit a file and save it, I see no evidence of CM making any changes. If I explicitly run code cleanup on the same file, changes are made.
Steps to recreate
Just one example with
using
but it seems to be a general problem.using
to a code file in your C# project (VS will show it as not needed)