vscode基本配置(格式化,缩进)

文件—>首选项—>设置—>右上侧打开设置(json),在setting.json里面放进去,保存,重启vscode

{
“files.autoSave”: “afterDelay”, //自动保存
“editor.detectIndentation”: false,
“editor.tabSize”: 4,//缩进四格
“editor.formatOnSave”: true,
“eslint.autoFixOnSave”: true,
“eslint.validate”: [
“javascript”,
“javascriptreact”,
{
“language”: “vue”,
“autoFix”: true
}
],
“prettier.eslintIntegration”: true,
“prettier.semi”: false,
“prettier.singleQuote”: true,
“javascript.format.insertSpaceBeforeFunctionParenthesis”: true,
“vetur.format.defaultFormatter.html”: “js-beautify-html”,
“vetur.format.defaultFormatter.js”: “vscode-typescript”,
“stylusSupremacy.insertColons”: false,
“stylusSupremacy.insertSemicolons”: false,
“stylusSupremacy.insertBraces”: false,
“stylusSupremacy.insertNewLineAroundImports”: false,
“stylusSupremacy.insertNewLineAroundBlocks”: false,
“vetur.validation.template”: false,
“vetur.format.options.tabSize”: 4
}

你可能感兴趣的:(vscode基本配置(格式化,缩进))