Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Auto-generate Javadoc comments in intelliJ? [duplicate]

Is it possible to auto-generate Javadoc comments for each method in one class in IntelliJ IDEA?

like image 699
Madan Avatar asked Feb 13 '16 14:02

Madan


2 Answers

Yes.

Under Tools you have Generate JavaDoc. Read about it in the official site.

In addition you may (Intellij 15):

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

Edit: You can use the action Fix doc comment. It doesn't have a default shortcut, but you can assign the Alt+Shift+J shortcut to it in the Keymap, because this shortcut isn't used for anything else.

like image 77
Idos Avatar answered Sep 21 '22 16:09

Idos


A QuickShortCut is

CTRL+SHIFT+A

From the dropdown List "Fix doc comment"

like image 43
resatz Avatar answered Sep 21 '22 16:09

resatz