Emmet not working on visual studio code:
Microsoft Visual Studio Code is a well-known open-source code editor for programmers that offers a variety of features such as debugging, syntax highlighting, built-in Emmet, intelligent code completion, embedded Git, code snippets, refactoring, and more. It has a user-friendly interface that allows for customization of themes, keyboard shortcuts, and preferences. Additionally, it offers a wide range of extensions to enhance its functionality. I have been using it for the past 5 years without any issues, however, after the recent update, I’ve encountered two problems:
- Visual studio code (VS code) has suddenly stopped recognizing HTML files (not detecting HTML file icon).
- Emmet not working on Visual studio code (VS code).
No need to worry, the above issues can be easily resolved by adding two lines of code to the “settings.json” file. Simply follow the instructions provided and your problems (Emmet not working on Visual studio code) will be fixed. Thank me later.
If you don’t like reading you can watch this video below.
Problem: HTML files not recognizing by Visual studio code (VS Code)
It seems that the visual studio code extension isn’t associated with the type of file (HTML) you have to manually add *.html to files.associations, in user settings.
Solution: Go to the “Settings” by clicking the settings icon (In mac it is Code — > Preferences –> Settings) then go to “Extension” then click “Edit in settings.json”

Now add the following line of code at the end of the code.
"files.associations": {"*html" : "html"}
Problem: Emmet not working on Visual studio code (VS code).
I am a fan of Visual Studio Code because it comes with built-in Emmet functionality, eliminating the need for additional extensions. However, after a recent update, Microsoft decided to turn off Emmet code expansion by the “tab” key by default, as it may interfere with the user’s intent to indent the code. Despite this change, I still enjoy using Visual Studio Code for its other features and ease of use.
Also read: 14 WEBSITES TO LEARN PROGRAMMING LANGUAGE FREE IN 2020
Solution: Like the above solution (HTML file not recognizing) Go to the “Settings” by clicking the settings icon (In mac it is Code — > Preferences –> Settings) then go to “Extension” then click “Edit in settings.json”
Now add the following line of code at the end of the code.
"emmet.triggerExpansionOnTab": true,

Conclusion: If you find this article helpful please don’t forget to help me by subscribing to the above youtube channel.
This article covers the following issues:
- Emmet not working on VS code.
- How to solve emmet issue in visual studio code.
- How to active emmet in vs code
- How to enable emmet in Visual studio code.
- Html file is not recognized by VS code.