end of line comment moves on code reformat
I don't want to report this as a bug since I think its my own error but I haven't been able to find the setting to stop line comments in Scala from ending up on the next line after a code reformat. E.g.,
final val invalidToken = "invalid" // Token that will never be used
after code reformat ends up as:
final val invalidToken = "invalid"
// Token that will never be used
Advice on the setting I need to enter to fix this would be most welcome.
-ljr
IDEA 10.0.1
Build #IU-99.32
JDK 1.6.0_22
Scala Plugin 0.4.345
Please sign in to leave a comment.
I submitted a bug: http://youtrack.jetbrains.net/issue/SCL-2715
Best regards,
Alexander Podkhalyuizin.
I'm pretty sure it's still broken in the most recent build too, apparently it goes back a LOOOOONG way:
IntelliJ IDEA 2017.2.6
Build #IU-172.4574.11, built on November 13, 2017
Licensed to Deltek, Inc. / Matthew Barker
Subscription is active until April 21, 2018
JRE: 1.8.0_152-release-915-b12 amd64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Windows 7 6.1
https://stackoverflow.com/questions/29319187/intellij-code-style-to-align-single-line-comments
https://intellij-support.jetbrains.com/hc/en-us/community/posts/205995759-Trailing-line-comment-formatting-still-broken?page=1#community_comment_360000015704
https://youtrack.jetbrains.com/issue/SCL-4269
https://intellij-support.jetbrains.com/hc/en-us/community/posts/205995759-Trailing-line-comment-formatting-still-broken?page=1#community_comment_360000015704