visual-studio-codeemmet

V S code V1.31 emmet intellisense not working with Python/Django Extensions


I installed Visual Studio Code 1.31.0 recently and also installed the python and django extensions. When I'm tying to create new HTML file, and typing "html" it was not showing with the emmet responses and after quite a bit of struggle, when I uninstalled python and django extensions, things are back to normal.

Any help on how to get emmet working with python and django extensions installed?


Solution

  • Django extension for Visual Studio Code

    as explained in the descriptionof the above link, you will have to enter the following code in your settings file.

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