Intellij generate javadoc for methods and classes

前端 未结 9 1946
礼貌的吻别
礼貌的吻别 2020-12-29 01:25

Is it possible to set up Intellij to generate javadoc for methods and classes, automatically, with @author and @since date ?
I had this feature in Eclipse.
I know,

相关标签:
9条回答
  • 2020-12-29 01:48

    For IntelliJ 12:

    Position caret above a method name, type /** and press Enter to let IntelliJ IDEA automatically generate JavaDoc stubs for this method. See here

    0 讨论(0)
  • 2020-12-29 01:50

    Now there is a new plugin available for that. It works great, you can generate javadoc with alt+insert.

    It's called "javaDoc", it's available directly in the plugin section. The documentation is here : https://github.com/setial/intellij-javadocs/wiki

    0 讨论(0)
  • 2020-12-29 01:54

    Actually it's now possible, you can simply go to "Settings/Editor/File and Code Templates". There, you can edit the template which is used to create classes, enums, interfaces etc. My Intellij version is 2019.2.3 and on linux.

    0 讨论(0)
提交回复
热议问题