amateurla.blogg.se

Jetbrains webstorm jsdoc
Jetbrains webstorm jsdoc









Position the caret at the method/function or field to document, press Ctrl+Shift+A and start typing Fix Doc Comment. To turn off automatic generation of JSDoc comments, open the Settings/Preferences dialog ( Ctrl+Alt+S), go to Editor | General | Smart Keys, and clear the Insert documentation comment stub checkbox in the Enter area.Īlternatively, use the dedicated Fix Doc Comment action. Describe the listed parameters, return values, and so on. WebStorm generates a JSDoc comment with a list of parameters ( and return values ( where applicable. Position the caret before the declaration of the method/function or field to document, type the opening block comment /**, and press Enter. WebStorm also recognizes TODO patterns, Closure Compiler annotations, and TypeScript syntax inside documentation comments and uses them in code completion, intention actions, and other types of coding assistance.įind a detailed description of the JSDoc syntax with examples in Getting Started with JSDoc and JSDoc supported types. JSDoc comments are used for documentation lookup with Ctrl+Q in JavaScript and TypeScript, see JavaScript documentation look-up and TypeScript documentation look-up, as well as for type annotations and method return type hints in chained methods. WebStorm recognizes JSDoc comments and helps you create them by automatically inserting and other tags when you type the opening block comment /** and press Enter.











Jetbrains webstorm jsdoc