Intellij IDEA format JavaDoc
2022-09-03 15:53:17
如何设置语句的格式,使其也与参数描述对齐(请参阅下图)return
我希望语句的第二行至少与第一行对齐,在这种特殊情况下,单词应该与单词对齐。我尝试了所有设置,但找不到任何设置。这是所需输出的代码段:return
needed
Some
Settings -> Editor -> Code Style -> Java -> Tab "JavaDoc"
return
/**
* 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.
如您所见,“需要”正好在“一些”之下。