Prettier vscode extension not support Django template tags {% tag %}

Prettier visual studio code extension not support Django template tags {% tag %}

now How can I fix this?

Do I have to disable Prettier extension for html files or is there another solution؟؟

issues 5581 in github = No Django template tags support

Answer

You can do two things:

  1. Disable Prettier on HTML files by adding this command in the ‘settings.json’ file:

    "prettier.disableLanguages": ["html"] 
    

    This will ensure, if you have enabled it, VS Code’s inherent HTML formatting.

OR

  1. You can install a Django extension like this one. However, the problem with this extension is that it disables VS Codes inherent HTML intellisense (which I personally like).

Hope this helps.