解决vscode中打开html文件 总有绿色波浪线报错信息的解决办法。

本文介绍了当VSCode打开HTML文件出现绿色波浪线报错时的解决方法,问题根源在于HTMLHint插件。关闭该插件可以消除报错,但会失去拼写检查。为保持检查功能,建议在htmlhint官网定制规则并更新VSCode的HTMLHint配置。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

只是一个标签居然也报错,前后检查没什么问题啊!

问题出在vscod中的HTMLHint插件,出了问题  关闭它不提示了!

但是也不会检查文件的拼写错误,比较好的做法是在http://htmlhint.com/中定制检查规则,下载好(用记事本打开)

在vscode中打开首选项——设置——搜索htmlhint—— 编辑"htmlhint.options":

"htmlhint.options": { "csslint": {
"display-property-grouping": true,
"known-properties": true
},
"jshint": {},
"src-not-empty": true,
"title-require": true,
"alt-require": true,
"style-disabled": true,
"id-class-ad-disabled": true,
"attr-unsafe-chars": true,
"doctype-html5": true,
"id-unique": true,
"spec-char-escape": true,
"tag-self-close": true,
"doctype-first": true,
"tag-pair": true,
"tagname-lowercase": true,
"space-tab-mixed-disabled": "true"
}



评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值