PHPDoc CommentThis extension adds PHPDoc blocks for PHP functions, properties, classes, interfaces, traits, and enums in VS Code. UsingIn a PHP file, place your cursor on the first line of a declaration, then run Add PHPDoc Comment from the Command Palette ( The extension supports multiline function signatures, class and namespaced types, nullable types, union and intersection types, promoted constructor properties, variadic/reference parameters, typed properties, and nested default values. If a declaration already has a PHPDoc block, the command leaves it unchanged. PHP attributes remain attached to their declarations because generated documentation is inserted before the attribute block.
LimitationsParameter types are not inferred from usage. Parameters and properties without a declared or recognizable default type are documented as Enjoy! Development
|
