What is the IntelliJ shortcut key to create a javadoc comment?

Intellij IdeaKeyboard ShortcutsJavadoc

Intellij Idea Problem Overview


In Eclipse, I can press Alt+Shift+J and get a javadoc comment automatically generated with fields, returns, or whatever would be applicable for that specific javadoc comment. I'm assuming that IntelliJ IDEA has this feature. Can anyone tell me if there is a keyboard shortcut for this?

Intellij Idea Solutions


Solution 1 - Intellij Idea

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

Solution 2 - Intellij Idea

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. By default, you can also press Ctrl+Shift+A two times and begin typing Fix doc comment in order to find the action.

Solution 3 - Intellij Idea

Shortcut Alt+Enter shows intention actions where you can choose "Add Javadoc".

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
Questionjosh-cainView Question on Stackoverflow
Solution 1 - Intellij IdeaRachel GallenView Answer on Stackoverflow
Solution 2 - Intellij IdeakrmView Answer on Stackoverflow
Solution 3 - Intellij IdeaRobert JakubowskiView Answer on Stackoverflow