-
Notifications
You must be signed in to change notification settings - Fork 278
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
Newline after scaladoc annotation #1387
Comments
@etspaceman generally, scalafmt formats code, not comments. i doubt it will be implemented. |
There are format rules for this kind of stuff in docstrings... so I would think something like this could absolutely fall under the responsibility of scalafmt |
@etspaceman you're right, it could. there's a similar issue (possibly a superset): #1234 |
Sorry to chime into this old issue. Is there a way to prevent a newline after a scaladoc annotation? /**
* Foo bar lorem...
*
* @tparam C This sentence should stay on the same line as the type parameter annotation
*/ |
I think https://scalameta.org/scalafmt/docs/configuration.html#docstringswrap should help |
|
I think you meant |
I wish there was a way to keep For example:
Becomes
Obviously if you have 3 paragraphs of english after |
Recently I had a requirement to move descriptions for scaladoc annotations to a new line. E.g.:
Becomes:
I would love to see this as an officially supported option in scalafmt.
The text was updated successfully, but these errors were encountered: