Auto generate Javadoc comments in intelliJ?

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

+5
source share
1 answer

Yes.

In Tools , you have Generate JavaDoc . Read about it on the official website .

Alternatively, you can ( Intellij 15 ):

Place the cursor over the method name, type / ** and press Enter so that IntelliJ IDEA automatically generates JavaDoc stubs for this method.

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

+13
source

Source: https://habr.com/ru/post/1242954/


All Articles