Surround code fragments – Help | PhpStorm

Below works for WebStorm IDE as well

Surround a code block with language constructs # Select the desired code fragment. On the Code menu, click Surround With (Ctrl+Alt+T). Select the necessary surround statement from the list.

Source: Surround code fragments – Help | PhpStorm

Leave a Reply

Your email address will not be published. Required fields are marked *