selector-to-tag

Create HTML tag elements using CSS selectors in HTML files

surdu

6,750

28

0.6.0

MIT

GitHub

This package consumes the following services:

Selector to Tag

Actions Status Buy me a coffee

Selector to Tag is an Atom editor package that allows you to create HTML tag elements using CSS selectors in HTML files.

Just type a CSS selector and press TAB :

Demo animation

Supported selectors

For now the following selectors are possible:

Selector Output
foo <foo></foo> (when Solve Plain Tags option is enabled (default true))
foo#bar <foo id="bar"></foo>
#foo <div id="foo"></div>
.foo <div class="foo"></div>
foo.bar <foo class="bar"></foo>
foo.bar.baz <foo class="bar baz"></foo>
foo#bar.baz <foo id="bar" class="baz"></foo>
foo#bar.baz.qux <foo id="bar" class="baz qux"></foo>

Options

Support

If you have any sugestions for other selectors or sugestions in general, please submit an issue on GitHub.