Example of JavaScript comment
Consider the following function:
function loadDocs(myParam1, myParam2){}
Type the opening documentation comment and press EnterEnter to generate the documentation comment stub:
/** * * @param myParam1 * @param myParam2 */
- Open the Settings dialog box and navigate to the Editor. Smart Keys page.
- In the Enter section, select or clear Insert documentation comment stub check box.
- Place the caret before the method or function declaration.
- Type the opening block comment /** and press EnterEnter.
- Describe the listed parameters and return values.
Tip
Documentation comment can be created with the dedicated action Fix Doc Comment. It can be invoked by means of Find Action command.
Press Ctrl+Shift+ACtrl+Shift+A, with the caret somewhere within a class, method, function, or field, which should be documented, and enter the action name Fix Doc String. The missing documentation stub with the corresponding tags is added. For example:
/** * * @param userInput * @return */ static boolean processRepeatConversion (@NotNull String userInput) { boolean repeatConversion = false; if (((userInput.equals("y")) || (userInput.equals("Y")))) { repeatConversion = true; } return repeatConversion; }
The next case lays with fixing problems in the existing documentation comments.
For example, if a method signature has been changed, IntelliJ IDEA highlights a tag that doesn't match the method signature, and suggests a quick fix.

Note that the action has no keyboard shortcut bound with it. You can do it as described in the section Configuring Keyboard Shortcuts.

comments
on typing the opening tag