vscode setting.json文件配置

{
    "search.followSymlinks": false,
    "terminal.integrated.shell.windows": "C:\\Windows\\System32\\cmd.exe",
    "explorer.confirmDelete": false,
    "editor.cursorBlinking": "smooth",
    "editor.fontFamily": "Consolas,Monospace",
    "editor.wordWrap": "on",
    "editor.cursorStyle": "line", //光标为细竖线
    "editor.tabSize": 2,  //缩进2个空格
    "vetur.format.defaultFormatterOptions": {
        "prettier": {
          "semi": false, //去掉末尾分号
          "singleQuote": true  //将所有双引号改为单引号
        }
      },
    "javascript.format.insertSpaceBeforeFunctionParenthesis": true,  //在方括号之间插入空格
    "vetur.format.defaultFormatter.js": "vscode-typescript",
    //iview组件eslint报告Col闭合标签问题
    "vetur.validation.template": false,
    //配置下vscode支持vue语言
    "eslint.validate": [
        "javascript",
        "javascriptreact",
        "html",
          {
            "language": "vue",
            "autoFix": true
          }
      ]   
}
发布了53 篇原创文章 · 获赞 88 · 访问量 4万+

猜你喜欢

转载自blog.csdn.net/qq_43702430/article/details/89919077