codecadwallader / codemaid

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.
http://www.codemaid.net
GNU Lesser General Public License v3.0
1.89k stars 356 forks source link

Cleanup code not working correctly (tab space increases in every code cleanup) #900

Open neroqfi opened 2 years ago

neroqfi commented 2 years ago

Environment

Description

This code starts to adjust to the right in every Cleanup Active Document command:

public IBindCommand UseCommand => CreateCommand(async (input) =>
{
          return null;
});

         /**** Cleanup code ****/

public IBindCommand UseCommand => CreateCommand(async (input) =>
          {
                       return null;
          });

Expected behavior

The code adjustment stays in the correct tab space.

->

public IBindCommand UseCommand => CreateCommand(async (input) =>
{
          return null;
});

         /*** Cleanup code ***/

public IBindCommand UseCommand => CreateCommand(async (input) =>
{
          return null;
});
codecadwallader commented 2 years ago

Thanks for reporting the issue. I am able to reproduce it. It appears to be tied to the explicit access modifiers logic which due to a new SDK bug has caused a number of issues. There's more information on #879 including a link to the SDK issue.

As a workaround for now you could disable the options at CodeMaid->Options->Cleaning->Insert->Insert explicit access modifiers.