PhpStorm
creates stubs of PHPDoc blocks
on typing the opening tag /**
and pressing EnterEnter.
If this feature is applied to a method or a function,
@param, @access, @static,
@throws, and @abstract tags are created.
In any other places PhpStorm adds an empty documentation stub.
If you need additional PHP-specific tags,
PhpStorm provides code completion that suggests tag names that are relevant in the current context.
If a certain tag has multiple values, the same code completion provides a list of available values.
In PHPDoc comments, PhpStorm supports the following formatting options in compliance with ZEND, PEAR, and other standards:
- Align parameter names
- Align tag comments
-
Align key-value pairs
-
Align consecutive assignments
Note
PHPDoc comments in your source code are available for the
Quick Documentation Lookup
feature and open for review on pressing Ctrl+QCtrl+Q.