关于vetur html中css提示 vscode切换成html模式就行,但是vetur会失效

clipboard.png

clipboard.png

如上图没有css的提示

clipboard.png

clipboard.png

切换到html模式就有 但是切换到html模式 vetur的路径提示就没了

clipboard.png

附上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"
    }
}
阅读 3.1k
1 个回答
新手上路,请多包涵

这样的话虽然.vue 文件中Html可以提示,但vetur的相关提示就不正常了eslint无法正常检测粗错误

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题
宣传栏