Search code examples
htmldjangovisual-studio-codedjango-extensions

HTML autocomplete is not working along with Django extension in VSCode


I am currently using the latest version of VSCode and Django. Whenever I enable the Django extension by Baptiste Darthenay, HTML autocomplete stops working. If I disable the Django extension and reload VSCode, it will start to work again. What should I do to make the HTML autocomplete work along with the Django extension?


Solution

  • Try adding this to your settings.json file:

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

    Additionally you can also add this one and tweak it to your preferences:

    "[django-html]": {
        "editor.defaultFormatter": "HookyQR.beautify",
        "editor.quickSuggestions": {
            "comments": true,
            "other": true,
            "strings": true
        },
        "editor.tabSize": 4,
        "editor.wordWrap": "on"
    }