'VS Code not autocompleting html
I have set up a new project to work on and have only created an index.html file and a style.css file. Usually, when I type html in the index.html, it provides options to create a basic template but I do not have those options, similarly, it does not do it for any html tags either.
I have checked that the language is HTML and not Django-HTML and also restarted the window but still no luck?
Solution 1:[1]
It may not give any suggestions / autocomplete for tags in an empty file, since you're not inside any basic html structure.
Try html:5 or ! to create a html template first.
Solution 2:[2]
try using html 5 <!DOCTYPE> or install emmet extension in vs-code
Solution 3:[3]
check if you are using HTML and not something like Django HTML or so. It can quite often be the issue. Other than that, be sure to use <!DOCTYPE html> I had simmilar problems while I was using VS code, so this may help
Solution 4:[4]
I installed the HTML Snippet extension, it was previously working before that without having to install the extension. Reloading VS Code did not work, but after restarting my computer it worked!
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | dreiekk |
| Solution 2 | Satyam Saurabh |
| Solution 3 | lordsanken |
| Solution 4 | jordanv |
