• Applicable Software: General
  • Min Version Number: 00.01.00
  • Max Version Number: Not Applicable

Steps

  1. Put the cursor on (or just above) a function or method declaration.
  2. Run MokoEdit: Insert DocBlock (or use the MokoEdit ▸ menu).
  3. MokoEdit reads the signature and generates the block:
    • One @param per argument — TypeScript name: Type and PHP Type $name are both understood.
    • A @return from the declared return type.
    • No @param for an empty argument list; no @return for constructors or void.
  4. Tab through the description placeholders to fill in details.

Part of the Moko VS Code suite.