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.
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.
Environment
Description
Steps to recreate
Current behavior
This triggers
SA1004
as well as making the output un-formatted.Expected behavior
Formatting inside a code block is kept.