{
// vscode默认启用了根据文件类型自动设置tabsize的选项
"editor.detectIndentation": false,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
},
// 重新设定tabsize
"editor.tabSize": 2,
"workbench.iconTheme": "vscode-great-icons",
"workbench.colorTheme": "One Dark Pro",
"files.associations": {
"*.cjson": "jsonc",
"*.wxss": "css",
"*.wxs": "javascript"
},
"emmet.includeLanguages": {
"wxml": "html"
},
"minapp-vscode.disableAutoConfig": true,
"git.enableSmartCommit": true,
// "git.path": "/usr/local/git/bin/git",
"terminal.integrated.shell.osx": "/bin/zsh",
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[typescript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[typescriptreact]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"typescript.updateImportsOnFileMove.enabled": "always",
"window.zoomLevel": 0,
"[html]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[vue]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
// 粘贴时格式化代码
// "editor.formatOnPaste": true,
// // 保存时格式化代码
// "editor.formatOnSave": true
}
vscode中setting.json配置
最新推荐文章于 2024-07-06 16:16:20 发布