Get more done with less typing, emmet like auto completion for PHP and JavaScript.
Quickly create if else statements, foreach loops and more.
- Install addon
- Configure Short Tags (optional)
This addon will provide auto completion for common php tags.
Also is there support for short-tags, this can be enabled trough the settings.
In the prefernce menu you can enable and disable tags.
This can be useful if you have a conflict with a html tag (like iframe conflicts with the <if if tag)
To insert a default php tag, type <?
and the following snippet will be inserted:
<? will expand to:
To instert a echo php tag, type <ec
and the following snippet will be inserted:
<ec will expand to:
To insert a if tag, type <if
and the following snippet will be inserted:
<if will expand to:
PHP - sub-language: HTML
PHP - sub-language: PHP
PHP - sub-language: JavaScript
JavaScript - sub-language: JavaScript
To insert a else tag, type <el
and the following snippet will be inserted:
<el will expand to:
PHP - sub-language: HTML
PHP - sub-language: PHP
PHP - sub-language: JavaScript
JavaScript - sub-language: JavaScript
To insert a else tag, type <ei
and the following snippet will be inserted:
<ei will expand to:
PHP - sub-language: HTML
PHP - sub-language: PHP
PHP - sub-language: JavaScript
JavaScript - sub-language: JavaScript
To insert a if-else tag, type <il
and the following snippet will be inserted:
<il will expand to:
PHP - sub-language: HTML
PHP - sub-language: PHP
PHP - sub-language: JavaScript
JavaScript - sub-language: JavaScript
To insert a foreach tag, type <fo
and the following snippet will be inserted:
<fo will expand to:
PHP - sub-language: HTML
PHP - sub-language: PHP
PHP - sub-language: JavaScript
JavaScript - sub-language: JavaScript
To insert a switch tag, type <sw
and the following snippet will be inserted:
<sw will expand to:
PHP - sub-language: HTML
PHP - sub-language: PHP
PHP - sub-language: JavaScript
JavaScript - sub-language: JavaScript
To insert a case tag, type <ca
and the following snippet will be inserted:
<ca will expand to:
PHP - sub-language: HTML
PHP - sub-language: PHP
PHP - sub-language: JavaScript
JavaScript - sub-language: JavaScript
To insert a print tag, type <pr
and the following snippet will be inserted:
<pr will expand to:
PHP - sub-language: HTML
In the right side pane you will find a cheat sheet so you can easily check witch abbreviations are available.