Rustfmt: Support vertical alignment

Created on 19 Jul 2016  路  6Comments  路  Source: rust-lang/rustfmt

Could the rustfmt support vertically align as default? At least it can be configured not to break the vertically aligned code when try to format codes include them.

Many people love it.
https://shkspr.mobi/blog/2014/11/why-i-vertically-align-my-code-and-you-should-too/

And another support is the gofmt use vertical alignment https://golang.org/doc/effective_go.html#formatting .

fun! p-low

Most helpful comment

I guess there is still no update on this.

Is this still true?

I would take a PR for this if there was a fairly complete implementation

If yes, I would like to at least try to implement this feature, I really miss it :upside_down_face:

All 6 comments

There is an ongoing effort to find out which style is preferred across the community. Maybe you should try your luck here: https://github.com/rust-lang/rfcs/pull/1607

AFAIK rustfmt will stick to the style agreed on in the RFC.

Thank you @duesee , I already did it. And I saw the RFC, it is targeting to get 'the decision process for the coding style', and it also said at last we will get the recommended style, and rustfmt will impl it as default style, leave others configurable. So whether the vertically align is choiced to be the recommended style, it can be implemented in rustfmt as a configuration.

And another support is the gofmt use vertical alignment https://golang.org/doc/effective_go.html#formatting .

Are there any updates?

Are there any updates?

No, sorry. I would take a PR for this if there was a fairly complete implementation, but I don't have time to work on it myself and there is a lot of higher priority work (better support for the default options, basically) to point people at.

I guess there is still no update on this.

Is this still true?

I would take a PR for this if there was a fairly complete implementation

If yes, I would like to at least try to implement this feature, I really miss it :upside_down_face:

Was this page helpful?
0 / 5 - 0 ratings

Related issues

fuine picture fuine  路  3Comments

scampi picture scampi  路  4Comments

fulara picture fulara  路  4Comments

torkleyy picture torkleyy  路  5Comments

cramertj picture cramertj  路  4Comments