美文网首页
settings.json (解决.vue文件满屏红色波浪线

settings.json (解决.vue文件满屏红色波浪线

作者: 徐福瑞 | 来源:发表于2021-06-17 14:45 被阅读0次
{
    "workbench.colorTheme": "Bear Theme",
    "editor.fontSize": 18,
    "vetur.format.options.tabSize": 4,
    "editor.detectIndentation": false,
    "git.ignoreWindowsGit27Warning": true,
    "[vue]": {
        "editor.defaultFormatter": "octref.vetur"
    },
    "bracketPairColorizer.activeScopeCSS": [
        "borderStyle : solid",
        "borderWidth : 1px",
        "borderColor : {color}; opacity: 0.5"
    ],
    "bracketPairColorizer.scopeLineCSS": [
        "borderStyle : solid",
        "borderWidth : 1px",
        "borderColor : {color}; opacity: 0.5"
    ],
    "vetur.format.defaultFormatter.html": "js-beautify-html",
    "vetur.format.defaultFormatter.js": "vscode-typ=script",
    "vetur.format.defaultFormatterOptions": {
        "js-beautify-html": {
            "wrap_attributes": "auto"
        },
        "prettyhtml": {
            "printWidth": 23000,
            "singleQuote": false,
            "wrapAttributes": false,
            "sortAttributes": false
        }
    },
    "editor.formatOnSave": true,
    "files.autoSave": "afterDelay",
    "files.associations": {
        "*.vue": "vue"
    },
    "vetur.ignoreProjectWarning": true,
    "js/ts.implicitProjectConfig.experimentalDecorators": true,
    "vetur.validation.template": false,
    "eslint.enable": false,
}

全部vue文件出现红色浪线的时候,加下面两行

  "vetur.validation.template": false,
    "eslint.enable": false,

相关文章

网友评论

      本文标题:settings.json (解决.vue文件满屏红色波浪线

      本文链接:https://www.haomeiwen.com/subject/uyjcyltx.html