Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VS code default all html files to Django templates & comments them in a wrong way (if I press ctrl + /)

VS code default all html files to Django templates & comments them in a wrong way (if I press ctrl + /)

i.e it comments normal html files by adding {% comment %} & {% endcomment %} instead of the correct html comment < !-- -->

like image 274
Ahmed Elkoussy Avatar asked Dec 24 '22 08:12

Ahmed Elkoussy


1 Answers

Go to: File -> Preferences -> Settings and add this line to your USER SETTINGS

"files.associations": {
    "*.html": "html"
}
like image 187
Vinorth Avatar answered Dec 25 '22 20:12

Vinorth