dotnet / dotnet/roslyn

Prettier-style formatting for opening tags

Open
#85,650 0 comments 0 reactions 0 assignees View on GitHub
Area-Razor
Dominant language
C#
Stars
20.7k
Forks
4.3k
PR merge metrics
PR metrics pending

Description

As a follow-up to the new "Attribute indent style" formatting option from dotnet/razor#12700 for dotnet/razor#6551 and dotnet/razor#8413, it would be nice to have the following (or equivalent) settings:

- Put first attribute on new line when opening tag spans more than one line
- Put closing bracket on new line when opening tag spans more than one line

So that this would be untouched:

```razor

```

But this:

```razor

```

Would be formatted to this (assuming the attribute indent style is set to indent by one level):

```razor

```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.