H5W3
当前位置:H5W3 > 其他技术问题 > 正文

关于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"
    }
}

回答:

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

本文地址:H5W3 » 关于vetur html中css提示 vscode切换成html模式就行,但是vetur会失效

评论 0

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址