VS code cannot initial html structure

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;

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值