{
// "window.zoomLevel": 1,
// } // {
// "editor.tabSize": 2,
"prettier.eslintIntegration": true ,
//prettier配置
"editor.detectIndentation": false,
//关闭自动更新拓展
"extensions.autoUpdate": false,
"prettier.singleQuote": true,
"prettier.semi": false,
//vetur配置
//vetur--->//vetur--->https://vuejs.github.io/vetur/FAQ.html#vue-file-cannot-be-imported-in-ts-file
//为了符合eslint的两个空格间隔原则
"editor.tabSize": 2,
"vetur.validation.template": false,
// Whether to have initial indent for <script> region
"vetur.format.scriptInitialIndent": true,
// Whether to have initial indent for <style> region
"vetur.format.styleInitialIndent": true,
// Use tabs for indentation. Inherited by all formatters.
"vetur.format.options.useTabs": true,
// Validate js/ts in <script>
"vetur.validation.script": true,
// Validate css/scss/less/postcss in <style>
"vetur.validation.style": true,
// "vetur.format.defaultFormatter.html": "js-beautify-html",
// 格式化插件的配置
"vetur.format.defaultFormatterOptions": {
"js-beautify-html": {
"end_with_newline": false, // End output with newline
"indent_char": " ", // Indentation character
"indent_handlebars": false, // e.g. {{#foo}}, {{/foo}}
"indent_inner_html": false, // Indent <head> and <body> sections
"indent_scripts": "keep", // [keep|separate|normal]
"indent_size": 2, // Indentation size
"indent_with_tabs": true,
"max_preserve_newlines": 1, // Maximum number of line breaks to be preserved in one chunk (0 disables)
"preserve_newlines": true, // Whether existing line breaks before elements should be preserved
"unformatted": [], // Tags that shouldn't be formatted. Causes mis-alignment
"wrap_line_length": 0, // Lines should wrap at next opportunity after this number of characters (0 disables)
// "wrap_attributes": "force"
// Wrap attributes to new lines [auto|force|force-aligned|force-expand-multiline] ["auto"]
}
},
//函数前加空格
"javascript.format.insertSpaceBeforeFunctionParenthesis": true,
//没有下边这个 上边不生效
"vetur.format.defaultFormatter.js": "vscode-typescript",
//配置eslint
"eslint.run": "onSave",
"eslint.autoFixOnSave": true,
"eslint.validate": [
"javascript",
"javascriptreact",
"html",
"vue",
{
"language": "html",
"autoFix": true
},
{
"language": "vue",
"autoFix": true
}
],
"eslint.options": {
"plugins": ["html"]
},
"window.zoomLevel": 1
}