Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Intellij code formatting converting variable Javadoc from single line to multiline

I'm using IntelliJ 2017.1 and It's converting my single line javadocs to multiline javadoc on every single instance variable and static strings. How do I setup the code formatter to keep the comment as single line comments if it fits in single line.

/** some java doc **/

is getting converted to

/** 
 * some java doc 
 */

thanks!

like image 748
Vivek Kumar Avatar asked Oct 31 '25 22:10

Vivek Kumar


1 Answers

Never Mind. Got this. There is an option in IntelliJ which says "Do not wrap one line comments"

enter image description here

like image 114
Vivek Kumar Avatar answered Nov 03 '25 19:11

Vivek Kumar



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!