Closed Axemagus closed 1 year ago
It appears this was an issue with Visual Studio instead of Codemaid. Updating to 17.4.2 resolved it. I suspect it might be related to https://github.com/dotnet/roslyn/pull/65382 and https://github.com/dotnet/roslyn/issues/65360 which were resolved in this release.
Environment
Description
Codemaid Cleanup seems to cause indentation changes
Steps to recreate
Current behavior
I have VS set to use a tab size of 2 spaces, with Adaptive Formatting disabled. If I run Visual Studio's native Format Document, the spacing is maintained. However if I use Codemaid's Cleanup Active Document, the indentation is changed to 4 spaces. This happens regardless of whether I use the menu entries or shortcut keys.
This occurs whether the Cleaning -> Visual Studio -> Run format document is enabled or disabled
This seems limited to .cs files, at least for me. I tried .cshtml, .html, .xml and .js files which work as expected.
Expected behavior
Codemaid's cleanup process should respect Visual studio's configured spacing CodeMaid.config.txt