IssueRaiser

Prettier-style line breaking

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?

Posted by jtheisen on Jul 10, 2019, 1:11 PM

Tags

Related issues

Raise real-world problems, find people facing the same issue, and discuss solutions.3,500 issues0 comments

github (Other)

Prettier-style line breaking

jtheisenJul 10, 2019, 1:11 PM

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?

Comments (0)

No comments yet. Start the discussion.

Comment on this issue