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

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

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

问题出在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"
}