Intellij IDEA JavaDoc format

How can I format the operator returnso that it is also aligned at the same level as the parameter description (see image below) enter image description here

I would like the second line of the statement to returnbe aligned with at least the first line, in this particular case the word neededshould be aligned with the word Some. I tried all the settings in Settings -> Editor -> Code Style -> Java -> Tab "JavaDoc", but did not find any settings for return. This is a snippet of the desired result:

/**
 * Add 2 to x and multiplies the result with y.
 *
 * @param x X param.
 * @param y Y param
 *
 * @return Some very long return description of the return statement even if it sometimes does not make sense but is
 *         needed to show the purpose of my question.

As you can see, “necessary” is exactly below “some.”

+10
source share
1 answer

, IntelliJ @return. , , IntelliJ , . :

14 2016, 03:12 - , , 2016 .

2014 , "" "", , , .

, , Ctrl + Alt + L .

+5
source

Source: https://habr.com/ru/post/1661818/


All Articles