Comment formatting - closing block comments?
Answered
Struggling to make formatting of "JavaDoc" style comments under Groovy to behave any time I have a comment closed by */ on line by itself, - it moves it to previous line - so :
/**
* Comment
*/
becomes
/**
* Comment*/
Been through all the Java/Groovy style settings, can't find the relevant one
Thanks
Please sign in to leave a comment.
FWIW, seems to only affect the "javadocs" with only text. I found a workaround in closing comments with **/ - but that is annoying. Got to be a way to turn this off
Can't reproduce.
What is the version of IntelliJ IDEA? Please try to restore defaults codde style settings: https://i.imgur.com/XFbY0rR.png
Custom plugins and .editorconfig files could be the cause.
Thanks - that helped to track it down
I reset the settings and the problem went away. I went through the properties one by one and tracked it down to:
```
<option name="KEEP_LINE_BREAKS" value="true" />
```
(Wrapping and Braces | Keep when reformatting | Line Breaks)