codemaid icon indicating copy to clipboard operation
codemaid copied to clipboard

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

Open Xiphereal opened this issue 4 years ago • 3 comments

Environment

  • Visual Studio version: 2019 16.11.7
  • CodeMaid version: 12
  • Code language: C#

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.

Xiphereal avatar Dec 14 '21 09:12 Xiphereal

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

codecadwallader avatar Dec 21 '21 15:12 codecadwallader

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

Suriman avatar Jan 11 '22 09:01 Suriman

Any updates?

Xiphereal avatar Feb 07 '22 18:02 Xiphereal

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

Xiphereal avatar Sep 27 '22 07:09 Xiphereal

I have the same problem. It is quite annoying.

ghost avatar Feb 10 '23 15:02 ghost