-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Column formatting #415
Comments
Alignment is something I'm somewhat interested in looking at, and it was also suggested in another position in #252, but there are a few reasons why it can be an issue:
If alignment was to be added, it would most likely be behind an option due to issue (1), as diff noise is not wanted by a lot of people. |
Behind an option would be great as well! Also, maybe it is possible to do alignment only if there are 2+ spaces in any of the lines inside one codeblock? And if every line has only one space - don't align. |
Going to fold this in as a duplicate of #252 for now, as it seems to be the same idea of aligning trailing comments |
Is it possible to format (or at least keep the formatting) in a column structure?
Here's what I mean (the spaces will shrink after formatting)
It is something that e.g. shfmt does.
The text was updated successfully, but these errors were encountered: