-
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
Special cases for add-space-for-scaladoc-asterisk #69
Comments
Hi, For #1 you can use the newline-and-indent function, which removes any trailing whitespace from the line where you press RET (see README.md on how to do this) If you insist on not using newline-and-indent, then you can have something like this:
#2 is something that bothers me also. If you would like to make a pull request with a solution, I'd gladly review it. You could start by looking how the
|
Thanks for the hint for (1), I followed the readme and I'm happy about my more powerful RET so far. I started to look into the implementation of (2), but I'm concerned about what happens if a line in a comment starts with
In this case, we would not want to delete the space in the third line, but only in the fifth line. |
This allows to type */ to end a multi-line comment even if automatic insertion of spaces after * is turned on. See issue hvesalai#69. Potential problem: What if the user actually wants to start a line with / in a multi-line comment?
Thank you for the commit. I have merged it and included you in the list of commiters in README.md. |
I use the default setting of
scala-indent:add-space-for-scaladoc-asterisk
tot
, so when I press RET * in a ScalaDoc comment, a space is inserted automatically. This is great except for two situations:" * \n"
for the empty line, but I would prefer something like" *\n"
without the trailing whitespace." * /\n"
for the intended last line of the comment, but I really need something like" */\n"
to actually end the comment.The text was updated successfully, but these errors were encountered: