Skip to content

Cleaning: wrap comments at column ignores length of cref tags #945

Open
@Xiphereal

Description

@Xiphereal

Environment

  • Visual Studio version: 2022 17.3.4
  • CodeMaid version: 12.0
  • 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>
///    x xxx x xxx xxxx xxxxxxxxx xxxxxxxxxxx xxxx xxx xxxx xxxxxx xxxxx xxx x xxx xxxxx xxxx x xxx <see cref="Class" />.
/// </summary>

then no line wrap is applied, and the line overflow the 100 char limit.

Current behavior

Wrap comments at column ignores length of cref tags.

Expected behavior

Wrap comments at column takes into account the cref tags to the overall line length, applying the wrap accordingly.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions