-
Notifications
You must be signed in to change notification settings - Fork 81
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
Annotations get collapsed to the same line as code it affects #395
Comments
@strulovich , I remember you have thoughts on this? |
If I recall correctly, the main reason we are at this state is since similar multiline formatting for annotated parameters look really bad.
Overall, this is basically working as intended right now. Without really strong support and argument to do it the opposite way I think we should keep it as is. |
Ok thanks for your comments |
Is there any progress? |
There's no progress here. Also see #226 |
See this comment here Also this would violate this principle here that we try to follow for ktfmt |
We are using ktfmt with the following gradle config
The issue that annotations get formatted on the same line, e.g. we get lines like
The Kotlinx documentation all have the annotations on different lines and I noticed that in ktfmt you also have annotations on different lines.
We would very much like ktfmt to format this like
Using ktfmt version 0.43.0
Many thanks.
The text was updated successfully, but these errors were encountered: