|

PHPStorm – Create PHP tag () shortcut

There is no built-in emmet shortcut in PhpStorm to insert a <?php ?> tag. But we can set it by Going to File -> Settings -> — IDE Settings — -> Live Templates

For Mac User: PhpStorm->Preferences->Editor->Live Templates, click on the PHP and add new Live Template.

On right sidebar click on “+” then:
Abbreviation : (for example) php
Template text:
Application: change the value to HTML like before then click on ok.

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

Similar Posts

Leave a Reply

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