abusaidm / html-snippets

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

Snippets not working after installing django plugin #57

Open hihammer opened 4 years ago

hihammer commented 4 years ago

Snippet recommendations was working perfectly but suddenly it stopped working after installing couple of django templates plugins. I guess there's some sort of overlapping. If there's a shortcut to enforce html snippets I think it would be a good workaround.

yeonsh commented 4 years ago

I added following settings to settings.json and the snippet works with Django template extensions installed.

  "files.associations": {
    "*.log.*": "log",
    "**/*.html": "html",
    "**/templates/**/*.html": "django-html",
    "**/templates/**/*": "django-txt",
    "**/requirements{/**,*}.{txt,in}": "pip-requirements"
  },
  "emmet.includeLanguages": {
    "django-html": "html"
  },