Intellij generate javadoc for methods and classes

2019-02-03 23:41发布

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, that files have templates and also i can manually semi-automatically add javadoc to selected method/class. But i want the generation to be automatic for every generated method/class/enum/interface/field etc.
This is useful for e.g. "extract method", "override/implement", "create getter/setter" etc.
This would save hundreds of manual actions.
I'm using IntelliJ Idea 9.0 BETA Community Edition, #IC-90.96.
TIA.

5条回答
甜甜的少女心
2楼-- · 2019-02-04 00:18

for generate javadoc in intellij Idea go to Tools->Generate JavaDoc (4th option) click it and give path to save your Document

查看更多
Explosion°爆炸
3楼-- · 2019-02-04 00:19

There is JavaDoc Sync Plugin 8. http://plugins.intellij.net/plugin/?idea&id=3403 Generates javadoc for all methods in class. Works in Idea 10.

查看更多
够拽才男人
4楼-- · 2019-02-04 00:22

For newer versions of IntelliJ (2016+), you can use this solution:

Typing /** + then pressing Enter above a method signature will create Javadoc stubs for you.

查看更多
啃猪蹄的小仙女
5楼-- · 2019-02-04 00:30

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

查看更多
趁早两清
6楼-- · 2019-02-04 00:33

It's not possible at the moment. You may want to Vote for IDEABKL-1787.

查看更多
登录 后发表回答