Navigation Menu

Skip to content

babobski/Smart-Tags-Auto-completion

Repository files navigation

Smart Tags Auto-completion

Get more done with less typing, emmet like auto completion for PHP and JavaScript.
Quickly create if else statements, foreach loops and more.

Installation

  • Install addon
  • Configure Short Tags (optional)

Auto-completions

This addon will provide auto completion for common php tags.
Also is there support for short-tags, this can be enabled trough the settings.

Enabling and disabling tags

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)

PHP tag - (php)

To insert a default php tag, type <? and the following snippet will be inserted:

<? will expand to:

preview

echo tag - (php)

To instert a echo php tag, type <ec and the following snippet will be inserted:

<ec will expand to:

preview

If tag - (php/js)

To insert a if tag, type <if and the following snippet will be inserted:

<if will expand to:
PHP - sub-language: HTML

preview

PHP - sub-language: PHP
PHP - sub-language: JavaScript
JavaScript - sub-language: JavaScript

preview

else tag - (php/js)

To insert a else tag, type <el and the following snippet will be inserted:

<el will expand to:
PHP - sub-language: HTML

preview

PHP - sub-language: PHP
PHP - sub-language: JavaScript
JavaScript - sub-language: JavaScript

preview

else if tags - (php/js)

To insert a else tag, type <ei and the following snippet will be inserted:

<ei will expand to:
PHP - sub-language: HTML

preview

PHP - sub-language: PHP
PHP - sub-language: JavaScript
JavaScript - sub-language: JavaScript

preview

If else tag - (php/js)

To insert a if-else tag, type <il and the following snippet will be inserted:

<il will expand to:
PHP - sub-language: HTML

preview

PHP - sub-language: PHP
PHP - sub-language: JavaScript
JavaScript - sub-language: JavaScript

preview

Foreach tag - (php/js)

To insert a foreach tag, type <fo and the following snippet will be inserted:

<fo will expand to:
PHP - sub-language: HTML

preview

PHP - sub-language: PHP

preview

PHP - sub-language: JavaScript
JavaScript - sub-language: JavaScript

preview

Switch tag - (php/js)

To insert a switch tag, type <sw and the following snippet will be inserted:

<sw will expand to:
PHP - sub-language: HTML

preview

PHP - sub-language: PHP
PHP - sub-language: JavaScript
JavaScript - sub-language: JavaScript

preview

Case tag - (php/js)

To insert a case tag, type <ca and the following snippet will be inserted:

<ca will expand to:
PHP - sub-language: HTML

preview

PHP - sub-language: PHP
PHP - sub-language: JavaScript
JavaScript - sub-language: JavaScript

preview

Print tag - (php)

To insert a print tag, type <pr and the following snippet will be inserted:

<pr will expand to:
PHP - sub-language: HTML

preview

CheatSheet

In the right side pane you will find a cheat sheet so you can easily check witch abbreviations are available.

sidepane

About

Get more done with less typing, emmet like auto completion for PHP and JavaScript.

Resources

Stars

Watchers

Forks

Packages

No packages published