dotnet / dotnet/format

Prettier-style line breaking

Open
#246 43 comments 165 reactions 0 assignees View on GitHub
Feature Request
Dominant language
No language data
Stars
1.9k
Forks
173
Avg merge
10d 13h
Merged PRs (30d)
1

Description

It's my understanding the the project doesn't do line breaking the way [Prettier](https://prettier.io) does: Inserting and removing line breaks depending on the *length of the resulting lines*.

I can't find a rationale for this and I can't find a ticket mentioning this.

It's technically easy to implement (using Roslyn), but it's not entirely independent from other formatting jobs (eg. whether opening braces should always be on a new line).

So what's going on? Is there no love for Prettier's approach?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.