html-tag-auto-complete
A simple atom editor package that enables auto completion of
html elements with/without class and id.

Features
-
Nothing much, but does exactly what it is supposed to do
-
Works with any file type(e.g.
.php,.js,.jsx,.mdetc.) as long as the word you are executing it on is a valid html tag(e.g.div,p,abbretc.)
Installation
apm install html-tag-auto-complete
or, go to Preferences > Install and search for html-tag-auto-complete
Usage
- Type in the tag name along with class and id in emmet like fashion-
{tag-name}
{tag-name}#{id}
{tag-name}.{class-1}.{class-2}
or, the following is also allowed, div will be used as tag-
.{class-1}
.{class-1}.{class-2}
#{id}
Finally, press: alt + tab or, right click and do Run HTML Tag AutoComplete.
- You will also find it available under
Packagesin menubar.
Why?
- The
emmetplugin is bloated while it's super lightweight. Also there are people like me who only requires this feature rather than all the magicsemmetcan do!
Development
-
Clone this repo locally
-
Open
atomin developer mode:atom -d -
Open the source code in
atom, make whatever changes you would like to make inlib/html-tag-auto-complete.jsand doView > Developer > Reload Windowto see if your changes are reflected(e.g. by applying the formatter from context menu orPackagemenu on top) -
Feel free to create a PR with your changes