Phpstorm zen coding: insert <?php ?> tag

David John Smith picture David John Smith · May 29, 2011 · Viewed 15.9k times · Source

Is there a built-in zen coding shortcut in PhpStorm to insert a <?php ?> tag? If not, how would I go about setting one?

Answer

Salman von Abbas picture Salman von Abbas · May 29, 2011

No there is not, You can set it by Going to File -> Settings -> -- IDE Settings -- -> Live Templates -> Add And using the following values:-

Abbreviation: php
Group: user
Template Text: <?php $END$ ?>
Context: Check HTML