如上图没有css的提示
切换到html模式就有 但是切换到html模式 vetur的路径提示就没了
附上setting.json
{
"files.autoSave": "onFocusChange",
"eslint.validate": [
"javascript",
"javascriptreact",
"vue-html",
"html",
{
"language": "html",
"autoFix": true
}
],
"eslint.run": "onSave",
"git.autofetch": true,
"terminal.integrated.shell.windows": "C:\\Windows\\System32\\cmd.exe",
"workbench.editor.enablePreview": false,
"vetur.format.defaultFormatter.js": "prettier-eslint",
"vetur.completion.autoImport": true,
"editor.tabSize": 2,
"eslint.autoFixOnSave": true,
"window.zoomLevel": 0,
"explorer.confirmDelete": false,
"editor.parameterHints.enabled": true,
"search.exclude": {
"**/dist": true
},
"editor.quickSuggestions": {
"other": true,
"comments": true,
"strings": true
},
"cSpell.enabledLanguageIds": [
"javascript",
"javascriptreact",
"markdown",
"html",
"vue",
"plaintext",
"text",
"typescript",
"typescriptreact",
"yml"
],
"code-runner.executorMapByGlob": {
"*.test.js": "tap",
"*.js": "node",
"*.vue": "node"
},
"cSpell.userWords": [
"autosize",
"blockquote",
"daterange",
"docx",
"loadeddata",
"rgba"
],
"editor.suggest.snippetsPreventQuickSuggestions": false,
"files.associations": {
"*.vue": "html"
}
}
这样的话虽然.vue 文件中Html可以提示,但vetur的相关提示就不正常了eslint无法正常检测粗错误