IntelliJ IDEA
 
Get IntelliJ IDEA
You are viewing the documentation for an earlier version of IntelliJ IDEA.

PHPDoc comments

Last modified: 10 August 2022

For documentation comments, IntelliJ IDEA provides completion that is enabled by default. IntelliJ IDEA creates stubs of PHPDoc blocks when you type the /** opening tag and press Enter, or press Alt+Insert and appoint the code construct (a class, a method, a function, and so on) to document. Depending on your choice, IntelliJ IDEA will create the required tags or add an empty documentation stub.

If you need additional PHP-specific tags, IntelliJ IDEA provides code completion that suggests the tag names that are relevant in the current context. If a certain tag has multiple values, code completion provides a list of available values.

In PHPDoc comments, IntelliJ IDEA supports formatting options in compliance with the ZEND, PEAR, and other coding standards.

PHPDoc comments in your source code are available for Quick Documentation Lookup, which helps you get quick information for any documented symbol. You can open them for review in the Documentation tool window by pressing Ctrl+Q.