Intellij generate javadoc for methods and classes
Solution 1
It's not possible at the moment. You may want to Vote for IDEABKL-1787.
Solution 2
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
Solution 3
For newer versions of IntelliJ (2018+), you can use this solution:
Typing /**
+ then pressing Enter above a method signature will create Javadoc stubs for you.
Solution 4
for generate javadoc in intellij Idea go to Tools->Generate JavaDoc (4th option) click it and give path to save your Document
Solution 5
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
KarolDepka
Passionate software developer && entrepreneur, mostly interested in stuff like Angular, TypeScript, Firebase, Firestore, Android, hybrid mobile apps, Java, MPS, Kotlin, Scala, C#, ...
Updated on July 08, 2022Comments
-
KarolDepka almost 2 years
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.