JavaDoc <p> instead of <p/>
Is there a reason why IntelliJ uses <p/> in JavaDocs instead of the standard <p> [1]?
If yes, how can I change it to comply with my projects coding standards?
[1] http://www.oracle.com/technetwork/java/javase/documentation/index-137868.html
请先登录再写评论。
I can't say with certainty since I am not a JetBrains developer, but that option has been there for a long time... and years ago there was a strong push in the industry for all tagging to be XHTML compliant. A major aspect of that push (and a requirement for XHTML compliance) was that all tags be closed. So I suspect the reason for the <p/> is due to that trend. It probably got put in that way at some point.
It is not currently possible. You may want to vote for the feature request IDEA-118147 Add javadoc formatting option "generate <p> on empty lines" .
Thanks for the link, will vote! :-)