CodeMaid is an open source Visual Studio extension to cleanup and simplify our C#, C++, F#, VB, PHP, PowerShell, JSON, XAML, XML, ASP, HTML, CSS, LESS, SCSS, JavaScript and TypeScript coding.
When CodeMaid re-inserts the using statements specified in the settings after a cleanup, it will always place them at the top of the file. Visual Studio has a setting that specifies the preferred 'using' directive placement, for example inside the namespace. It would be nice if CodeMaid can respect this setting.
Steps to recreate
Set the Preferred 'using' directive placement setting to "Inside namespace". This setting can be found in Options -> Text Editor -> C# -> Code Style -> General -> 'using' preferences
In the CodeMaid options under Cleaning -> Visual Studio, add some usings to re-insert when removed.
Create a new C# class and add the usings specified in the previous step (make sure they are unused)
Run a CodeMaid cleanup
Current behavior
The unused usings are re-inserted at the top of the file even though the Preferred 'using' directive placement setting specifies otherwise.
Expected behavior
The unused usings are re-inserted at the location as specified by the Preferred 'using' directive placement setting.
Environment
Description
When CodeMaid re-inserts the using statements specified in the settings after a cleanup, it will always place them at the top of the file. Visual Studio has a setting that specifies the preferred 'using' directive placement, for example inside the namespace. It would be nice if CodeMaid can respect this setting.
Steps to recreate
Current behavior
The unused usings are re-inserted at the top of the file even though the Preferred 'using' directive placement setting specifies otherwise.
Expected behavior
The unused usings are re-inserted at the location as specified by the Preferred 'using' directive placement setting.