{
"workbench.colorTheme": "Atom One Dark",
"explorer.confirmDragAndDrop": false,
"javascript.updateImportsOnFileMove.enabled": "always",
// vscode默认启用了根据文件类型自动设置tabsize的选项
"editor.detectIndentation": false,
// 重新设定tabsize
"editor.tabSize": 2,
// #每次保存的时候自动格式化
"editor.formatOnSave": true,
// #每次保存的时候将代码按eslint格式进行修复
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
},
"eslint.format.enable": true,
// 添加 vue 支持
"eslint.validate": ["javascript", "javascriptreact", "html", "vue"],
// #去掉代码结尾的分号 false是去掉 true是打开
"prettier.semi": false,
// #使用单引号替代双引号
"prettier.singleQuote": false,
// #让函数(名)和后面的括号之间加个空格 不加空格false
"javascript.format.insertSpaceBeforeFunctionParenthesis": false,
// #让vue中的js按编辑器自带的ts格式进行格式化
"vetur.format.defaultFormatter.html": "prettyhtml",
"vetur.format.defaultFormatter.js": "vscode-typescript",
// 使用单引号替代双引号
"vetur.format.defaultFormatter.stylus": "stylus-supremacy",
// 代码美化选择
"vetur.format.defaultFormatterOptions": {
"js-beautify-html": {
"wrap_attributes": "force-aligned"
// #vue组件中html代码格式化样式
}
},
"explorer.confirmDelete": false,
"editor.renderControlCharacters": true,
"editor.renderWhitespace": "all",
"workbench.iconTheme": "vscode-icons",
"files.associations": {
"*.cjson": "jsonc",
"*.wxss": "css",
"*.wxs": "javascript"
},
"emmet.includeLanguages": {
"wxml": "html"
},
"minapp-vscode.disableAutoConfig": true,
"editor.suggestSelection": "first",
"vsintellicode.modify.editor.suggestSelection": "automaticallyOverrodeDefaultValue",
"eslint.nodeEnv": "",
"git.confirmSync": false,
"git.enableSmartCommit": true,
"bracketPairColorizer.depreciation-notice": false,
"git.autofetch": true,
"[vue]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[json]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"security.workspace.trust.untrustedFiles": "open",
"eslint.codeActionsOnSave.rules": [],
"eslint.alwaysShowStatus": true
}
vsCode配置项 模板
最新推荐文章于 2025-03-19 09:53:48 发布