Steps
- Put the cursor on (or just above) a function or method declaration.
- Run MokoEdit: Insert DocBlock (or use the MokoEdit ▸ menu).
- MokoEdit reads the signature and generates the block:
- One
@paramper argument — TypeScriptname: Typeand PHPType $nameare both understood. - A
@returnfrom the declared return type. - No
@paramfor an empty argument list; no@returnfor constructors orvoid.
- One
- Tab through the description placeholders to fill in details.
Part of the Moko VS Code suite.