abusaidm / html-snippets

VSCode html-snippets extention
MIT License
100 stars 72 forks source link

README

Visual Studio Code HTML Snippets

DISABLING THIS EXTENSION AS IT CURRENTLY CONFLICTS WTH EXISTING VS CODE HTML EXTENSION

This extension adds rich language support for the HTML Markup to VS Code, including:

Update 5

Update 4

Update 3

Update 2

Update 1

Todo

Using

Type part of a snippet, press enter, and the snippet unfolds.

Snippets named as the tag without braces

div --> <div></div>
doc --> <!DOCTYPE html>
a   --> <a href="https://github.com/abusaidm/html-snippets/blob/master/"></a>

alt text

Installation

  1. Install Visual Studio Code 0.10.1 or higher
  2. Launch Code
  3. From the command palette Ctrl-Shift-P (Windows, Linux) or Cmd-Shift-P (OSX)
  4. Select Install Extension
  5. Type HTML-Snippets
  6. Choose the extension
  7. Reload Visual Studio Code

FAQ

How to enable the snippets on a file other than html?

Add the following code to the project settings.json or global settings.json :

"files.associations": {
        // extension name : html
        "*.ejs": "html",
        "*.js": "html"
    }

the above code will allow html snippet to work on .ejs and .js files, amend to fit your needs.

Please Read this answer. Make extension work in languages other than HTML

How can I report an issue?

The easiest way is to start a git issue, I will attempt to answer ASAP else I hope someone else will answer.

Contact

If you find any issue or have a suggestion please tweet me on @m_abusaid

I am unable to respond to comments on the store page, please use appropriate channels github/twitter to reach me. Thank you

License

MIT License, refer to license file.

Source

Github

Enjoy!