I found the answer in documentation , You can solve this by adding a custom Live Template in Phpstorm.
Go to Settings → Editor → Live Templates, click + to make a new one, give it an abbreviation (like html5
), paste your HTML5 boilerplate in the template text, and under Applicable in, tick PHP
.
Now, in a .php
file (outside your PHP tags), just type your abbreviation and hit Tab — you’ll get the full boilerplate instantly.