Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

visual studio code not recognizing html files

VS code has suddenly stopped recognizing html files (the file icon is the default one for files with no extension)

all other file extensions work just fine

all other file extensions work just fine

except for html

except for html

the tags still work but it won't autocomplete

like image 489
seolbinism Avatar asked Nov 18 '18 00:11

seolbinism


Video Answer


2 Answers

Adding this to file extensions worked for me:

"files.associations": {
        "*.html": "html"  
} 
like image 146
user1169907 Avatar answered Sep 28 '22 00:09

user1169907


In my case, for this problem the solution was to manually add *.html to files.associations, in user settings. Its unlogical but it seems that somehow the extension wasn't associated to the type of file. Now everything works perfectly...

like image 45
pablish Avatar answered Sep 28 '22 00:09

pablish