vscode保存自动格式化代码

vue/typescript

{
    "eslint.autoFixOnSave": true,
    "eslint.run": "onType",
    "vetur.format.defaultFormatterOptions": {
        "prettier": {
            "semi": false,
            "singleQuote": true
        }
    },
    "javascript.format.insertSpaceBeforeFunctionParenthesis": true,
    "vetur.format.defaultFormatter.js": "vscode-typescript",
    "workbench.colorTheme": "Quiet Light",
    "editor.tabSize": 2,
    "eslint.alwaysShowStatus": true,
    "git.autofetch": true,
    "git.confirmSync": false,
    "editor.formatOnSave": true,
    "vetur.format.defaultFormatter.html": "js-beautify-html",
    "terminal.integrated.shell.windows": "C:\\WINDOWS\\System32\\cmd.exe"
}

保存为settings.json


image.png

替换以前的配置就好

你可能感兴趣的:(vscode保存自动格式化代码)