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


I'm a freelance Wordpress Front-end Developer, work from my home office. Mostly do my freelance work on Upwork. I'm a TOP RATED freelancer with over 11K+ Work Hours. Specialize in HTML5, CSS3, SCSS, JavaScript, jQuery, Ajax, ES6, Bootstrap, PHP, MySQL, Wordpress, Woocommorce and Custom Wordpress Theme and Plugin Development

Leave a Reply

Close Menu