- Open the Settings dialog box and navigate to the Editor. Smart Keys page.
- In the Enter section, select or clear Insert documentation comment stub check box.
- Place the caret before the method or function declaration.
- Type the opening block comment /** and press EnterEnterEnterEnterEnterEnterEnterEnterEnterEnterEnterEnter.
- Describe the listed parameters and return values.
Tip
IntelliJ IDEA checks syntax in the comments and treats it according to the PHP Inspections settings.
- In a PHPDoc block, select the desired empty line and press Ctrl+SpaceCtrl+SpaceCtrl+SpaceCtrl+SpaceAlt+SlashCtrl+SpaceCtrl+SpaceCtrl+Space or Ctrl+Back SlashCtrl+SpaceControl SpaceControl SpaceControl Space.
- Select the relevant tag from the suggestion list.
- If the entered tag has several values, press Ctrl+SpaceCtrl+SpaceCtrl+SpaceCtrl+SpaceAlt+SlashCtrl+SpaceCtrl+SpaceCtrl+Space or Ctrl+Back SlashCtrl+SpaceControl SpaceControl SpaceControl Space and select the desired value from the suggestion list.

on typing the opening tag