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

Surround code fragments

Last modified: 01 August 2023

PhpStorm provides standard templates for surrounding code fragments with various constructs based on the language of the source code. This includes if...else conditional statements, do...while and for loops, combinations of try...catch...finally, XML tags, folding regions, and other constructs.

This feature applies to the following languages (contexts):