XML Comment formatting eats spacing inside `<code>` block
RenderMichael opened this issue · 1 comments
RenderMichael commented
Environment
- Visual Studio version: 2022 Community, 17.9 Preview 5
- CodeMaid version: 12.0
- Code language: C# 12
Description
/// <summary>
/// Represents an HTML element.
/// </summary>
/// <remarks>
/// Use this like the following:
/// <code>
/// new Element()
/// {
/// Locator = ...,
/// LocatorType = ...,
/// Name = ...,
/// Type = ...
/// }
/// </code>
/// </remarks>
public sealed record Element
{
// ..
}
Steps to recreate
- Take the above text and format it
Current behavior
/// <summary>
/// Represents an HTML element.
/// </summary>
/// <remarks>
/// Use this like the following:
/// <code>
///new Element()
///{
///Locator = ...,
///LocatorType = ...,
///Name = ...,
///Type = ...
///}
/// </code>
/// </remarks>
public sealed record Element
{
// ..
}
This triggers SA1004
as well as making the output un-formatted.
Expected behavior
Formatting inside a code block is kept.
RenderMichael commented
I fidgeted with the settings and couldn't find one to turn this off, so for now I turned off format-on-save for comments completely.