Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>PHP Block CommentNew to Visual Studio Code? Get it now.
PHP Block Comment

PHP Block Comment

imoca

|
15,329 installs
| (1) | Free
Add phpdoc @param and @return tag for selected function signatures.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

phpdoc-comment-vscode-plugin

This plugin helps you to add phpdoc block automatically for function, variable and class in vscode.

Using

In a PHP file, place your cursor on the first line of a function, variable or class, then invoke the Add PHPDoc Comments extension (open the command palette (F1) and look for the command 'Add PHPDoc Comment'). Hit enter. You can also hit the shortcut key command + shift + q or context menu.

preview

Limitations

Parameter types are not inferred based on usage. If a type is not specified, a mixed are returned.

Enjoy!

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft