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.92k stars 362 forks source link

Cleaning: Comment formatting changes each time the code clean up is applied #889

Open Xiphereal opened 2 years ago

Xiphereal commented 2 years ago

Environment

Description

When applying code clean up on saving with "Wrap comments at column" at 100 and "Skip wrapping on the last word" enabled, if line has a content similar to this:

        /// <summary> xxxxxxxx xx xx xxxx xxxxxxx xx xxxxxxxxxxxx xx xx xxxx xx xxxxxx xx. </summary>

(Note the 8 spaces of indentation).

then the formatting changes from one line to multiple lines an viceversa each time the code clean up is applied.

Current behavior

The formatting changes from one line to multiple lines an viceversa each time the code clean up is applied.

Expected behavior

A formatting (either one line or multiple lines) is applied once and doesn't change on each code clean up.

codecadwallader commented 2 years ago

Thanks for reporting the issue. @w5l are you available to take a look?

Suriman commented 2 years ago

Please try to fix this as soon as possible as it causes a lot of noise in code reviews.

Xiphereal commented 2 years ago

Any updates?

Xiphereal commented 2 years ago

Hope you can take a look at this, still a relevant issue 😄

ghost commented 1 year ago

I have the same problem. It is quite annoying.