{
"editor.fontSize": 17,
"editor.tabSize": 2,
"editor.wordWrap": "on",
"workbench.panel.defaultLocation": "right",
"files.associations": {
"*.cjson": "jsonc",
"*.wxss": "css",
"*.wxs": "javascript"
},
"emmet.includeLanguages": {
"wxml": "html"
},
"minapp-vscode.disableAutoConfig": true,
"editor.codeLensFontFamily": "PingFangSc",
"debug.console.fontFamily": "Menlo",
"workbench.fontAliasing": "antialiased",
"terminal.integrated.fontSize": 13,
"terminal.integrated.lineHeight": 1.2,
"workbench.editor.showTabs": true,
"liveServer.settings.donotShowInfoMsg": true,
"editor.minimap.enabled": false,
"vsicons.dontShowNewVersionMessage": true,
// 自动修复
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
},
// 配置 ESLint 检查的文件类型
"eslint.validate": ["javascript", "vue", "html"],
"eslint.format.enable": true,
"[vue]": {
"editor.defaultFormatter": "octref.vetur"
},
//一定要在vutur.defaultFormatterOptions参数中设置,单独修改prettier扩展的设置是无法解决这个问题的,因为perttier默认忽略了vue文件(事实上从忽略列表移除vue也不能解决这个问题)
"vetur.format.defaultFormatterOptions": {
"prettier": {
"arrowParens": "avoid",
// "semi": false, // 格式化不加分号
"singleQuote": true // 格式化以单引号为主
},
"js-beautify-html": {
// 对属性进行换行。
// - auto: 仅在超出行长度时才对属性进行换行。
// - force: 对除第一个属性外的其他每个属性进行换行。
// - force-aligned: 对除第一个属性外的其他每个属性进行换行,并保持对齐。
// - force-expand-multiline: 对每个属性进行换行。
// - aligned-multiple: 当超出折行长度时,将属性进行垂直对齐。
"wrap_attributes": "force-aligned", //强制折行对齐
"wrap_line_length": 1000,
"wrap_width_line": false,
"semi": false,
"singleQuote": true
},
"prettyhtml": {
"printWidth": 1000,
"singleQuote": false,
"wrapAttributes": false,
"sortAttributes": true
}
},
"vetur.format.defaultFormatter.html": "js-beautify-html",
"vetur.format.defaultFormatter.js": "prettier",
"[jsonc]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"workbench.colorCustomizations": {
"sideBar.background": "#252525", //侧边栏
"sideBarSectionHeader.background": "#252525", //侧边栏节标题
"activityBar.background": "#333", //左侧
"statusBar.background": "#252525", //底部
"editor.background": "#1f1f1f", //编辑器
"tab.inactiveBackground": "#252525",
"tab.activeBackground": "#2d2d2d"
},
"workbench.colorTheme": "Atom One Dark",
"editor.formatOnPaste": true,
"editor.formatOnSave": true,
"editor.tabCompletion": "on",
"editor.fontFamily": "Menlo,'Source Code Pro',Menlo, Monaco, 'Courier New', monospace",
"diffEditor.maxComputationTime": 5007
}