3

I've been using HTML Snippets extension for HTML snippets in VSC for a while, however in my most recent project these have stopped working. I've tried researching why this is, and I can't find a straight answer on how to fix it. Being unable to use HTML snippets is severely limiting the speed of my html coding.

5
  • looking at the extension page it looks a lot like Emmet, see VSC docs pages Commented May 7, 2022 at 18:29
  • download the v0.1.0 vsix file, unzip the file and use the snippets,json file inside and copy the content to your local html.json snippet file Commented May 7, 2022 at 18:37
  • it has stopped working in 2017-Dec, I don't call this recent Commented May 7, 2022 at 23:48
  • It was still working for me until yesterday, hence why I said recently. Commented May 8, 2022 at 12:27
  • you can add all the snippets from the extension (v0.1.0) to the django-html user snippets file Commented May 8, 2022 at 12:30

2 Answers 2

1

bro, the author has disabled this extension

Update 5

Disabling this extension as its functionality has been absorbed by VS Code main html extension.

Download

You can get the previous working version here, just remove the previously installed extension, also do not update this extension after installation

Sign up to request clarification or add additional context in comments.

7 Comments

How do I enable the vscode main html extension then? I've definitely not got any snippets right now.
@Evelyn see my edit of my answer
I overlooked the fact I'm working in django-html which VSC identifies as a different language mode as html, so my solution ended up being adding django html to the emmet included languages which appears to have worked and snippets are now working again.
Has anyone found a sufficient solution in 2024? I didn't know this was disabled and have been using it continuously until it broke today.
@KenIngram if you read my answer, you will find a download like where you can get the previous working version of the extension.
|
0

This extension has been disabled because it is now integrated into VS Code. It is called Emmet abbreviations.

I don't use django, but the solution is the same as for JavaScript (React):

Open settings.json. For this type Ctrl+Shift+P (Win) / Cmd+Shift+P (Mac) and search for and select "Open Settings (JSON)".

Add next line (don't forget to put a comma on the previous line):

"emmet.includeLanguages": {
  "javascript": "javascriptreact"
}

I'm trying a solution for django as well, but I can't verify it:

"emmet.includeLanguages": {
  "django-html": "html"
}

or

"emmet.includeLanguages": {
    "django": "html"
}

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.