Example of JavaScript comment
Consider the following function:
function loadDocs(myParam1, myParam2){}
Type the opening documentation comment and press Enter 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.
- In the Smart Keys page, select the check box Insert 'type' and 'rtype' to the documentation comment stub.
- Place the caret before the method or function declaration.
- Type the opening block comment /** and press Enter.
- Describe the listed parameters and return values.
PyCharm checks syntax in the comments and treats it according to the Code Inspections settings.
comments
on typing the opening tag