Example of JavaScript comment
Consider the following function:
function loadDocs(myParam1, myParam2){}
Type the opening documentation comment and press EnterEnterEnterEnterEnterEnterEnterEnterEnterEnterEnter 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 EnterEnterEnterEnterEnterEnterEnterEnterEnterEnterEnter.
- 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+ACtrl+Shift+ACtrl+Shift+ACtrl+Shift+ACtrl+Shift+ACtrl+ICtrl+Shift+AMeta Shift AMeta Shift AMeta 3, 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:
function loadDocs(myParam1, myParam2){}
Type the opening documentation comment and press EnterEnterEnterEnterEnterEnterEnterEnterEnterEnterEnter to generate the documentation comment stub:
/** * @param myParam1 * @param myParam2 */
The next case lays with fixing problems in the existing documentation comments.
For example, if a method signature has been changed, PhpStorm highlights a tag that doesn't match the method signature, and suggests an intention action UpdateJSDoc comment. You can also press Ctrl+Shift+ACtrl+Shift+ACtrl+Shift+ACtrl+Shift+ACtrl+Shift+ACtrl+Shift+ACtrl+ICtrl+Shift+AMeta Shift AMeta Shift AMeta 3, and type the action name:

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

tool. All you need,
is supply your code with