madskristensen / HtmlTools2019

Other
7 stars 8 forks source link

Html Tools 2019

Build status

Download this extension from the VS Marketplace or get the CI build.


Productivity tools for the HTML editor

Features

Image hover preview

Image hover

Go to definition

Hit F12 when the cursor is located inside a class or ID attribute. HTML Tools will jump to the location inside CSS, LESS and Sass files.

Peek definition

Hit Alt+F12 when the curser is located inside a class or ID attribute. A peek definition inline code window will appear showing the definition of the class/ID from CSS, LESS and Sass files.

Meta tags

Full Intellisense provided for:

Dynamic Intellisense

Dynamic Intellisense is where Intellisense is based on other tags and attributes etc.

<label for="here">
<input id="here" /> based on <label> tags
<datalist> IDs

Dynamic Intellisense

Find all references

Hit Shift+F12 when the cursor is located inside a class attribute. HTML Tools will search all CSS, LESS and SASS files for the class name.

Light bulbs

Light bulbs are added for variuos scenarios including:

Validation

OpenGraph prefix

When working with Facebook/OpenGraph integration, we need to remember to add the prefix attribute to the <head> element.

Microdata

Validates that the itemtype attribute is a valid absolute URL.

rel=logo

Validates that the type attribute has the value image/svg

License

Apache 2.0