简体   繁体   中英

VS code is not able to identify html extension

my vs code can't identify which web extension I am using, It can identify .htm instead of .html extension, and because of this, it cannot give me a suggestion for an HTML tag.

HMTL 截图HTM 截图

As you mentioned, the problem is that apparently your file association was disconfigured. So, in order to solve it, you need to follow next steps:

In the right bottom of your screen press on the file type name (it's near to the smiley face). I imagine that show something as "Plain text" or something like that.

It should appear a menu. On this menu, choose Auto detect option. I think could be work just on that way. Maybe you need to restart your VS Code after that.

If it's not working yet, just choose Configure File Association for .html and then choose HTML .

And from now on your VS Code be allowed to detect .html files as the correct ones.

Regards!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM