Skip to content

Allow customization of Blazor Razor component formatting rules #6551

@vsfeedback

Description

@vsfeedback

This issue has been moved from a ticket on Developer Community.


Hello, I'd like to be able to customize some formatting rules in my Blazor Razor component files. Mainly the element attribute indentation rules.

The default formatting rule is to place the first attribute on the same line as the element start tag, and following attributes keep the indentation of the initial attribute.

<SfTextBox CssClass="e-field"
           Placeholder="Tag" />

I would like to customize the formatting rule so that the first attribute will be on the line below the element start tag, with a single indentation from the element start tag and have the following attributes to use the same indentation.

<SfTextBox 
    CssClass="e-field"
    Placeholder="Tag" />

Metadata

Metadata

Assignees

Labels

author: migration bot 🤖The issue was created by a issue mover bot. The author may not be the actual authorfeature requestLarge improvement request

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions