vscode 最简单实用的setting.json默认配置项


vscode 最简单实用的默认配置项

eslint、prettier、vetur

setting.json文件

{
    "workbench.iconTheme": "vscode-icons",
    "files.autoSave": "afterDelay",
    "liveServer.settings.CustomBrowser": "chrome",
    "editor.formatOnSave": true,
    "html.format.indentInnerHtml": true,
    "html.format.indentHandlebars": true,
    "eslint.format.enable": true,
    "prettier.requirePragma": true,
    "[vue]": {
        "editor.defaultFormatter": "octref.vetur"
    },
    //分号
    "prettier.semi": false,
    //单引号包裹字符串
    "prettier.singleQuote": true,
    //html格式化依赖  默认为none
    "vetur.format.defaultFormatter.html": "js-beautify-html",
    //函数前加空格
    // "javascript.format.insertSpaceBeforeFunctionParenthesis": true,
    //没有下边这个 上边不生效
    "vetur.format.defaultFormatter.js": "vscode-typescript",
}

自动保存后自动格式化eslint代码格式校验


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM