VS code cannot initial html structure
Using vscode st udio to do development of web can save a lot of time comparing with traditiaonal ways, But sometimes it cannot be work to initial html stucture with Tab button and "!".
I conclude three ways to solve that question.
Firstly, do a double check your origianl folder, see what type of file you created. If it is text or sth, you should be change it to .html. Then run it again.
Secondly, Let vscode studio in edit mode. and then press shrotcut key " ctrl+shift+p"
Third is that enter change language mode in the input box. Then you'll be see serveal options below. Find the configuration file associated with html.
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Chinese:
有关于Vscode studio 不能用tab+叹号自动生成 html 骨架问题.
今天在html学习时,突然发现不能用tab+叹号自动生成html骨架,首先我以为是我配置的插件问题导致了自动匹配器不兼容,然后我与html无关的插件全部unstall掉,结果依然存在那个问题。
后来我随便建了一个档,进入后,ctrl+s 直接保存退出,我去到我原始文件文件夹,发现系统自动匹配的是text,因为我刚才有更改过一次之前,但是没想到是vscode自动识别到了。因此后来我无法用快捷键创建html骨架,我真**-是个小可爱(2021做个有素质的人)
正常解决方法:
1. 创建个文件,先让他进入编辑状态,后接快捷键 Ctrl+shift+p
2 在输入框输入change language mode,找到 “.html”的配置文件关联 ;
3 文件后缀名选择HTML;