`{
"editor.tokenColorCustomizations": {
"comments": "#82e0aa", // 注释
},
// tab 大小为2个空格
"editor.tabSize": 2,
// 100 列后换行
"editor.wordWrapColumn": 100,
// 保存时格式化
"editor.formatOnSave": true,
// 开启 vscode 文件路径导航
"breadcrumbs.enabled": true,
// prettier 设置语句末尾不加分号
"prettier.semi": false,
// prettier 设置强制单引号
"prettier.singleQuote": false,
// 选择 vue 文件中 template 的格式化工具prettyhtml
"vetur.format.defaultFormatter.html": "js-beautify-html",
// 显示 markdown 中英文切换时产生的特殊字符
"editor.renderControlCharacters": true,
// 设置 eslint 保存时自动修复
"eslint.autoFixOnSave": true,
// eslint 检测文件类型
"eslint.validate": [
"javascript",
"javascriptreact",
"html",
"vue",
],
// 新加
"eslint.codeAction.showDocumentation": {
"enable": true
},
"emmet.excludeLanguages": [
"markdown"
],
//保存的时候自动格式化
"editor.formatOnType": true,
// #让函数(名)和后面的括号之间加个空格
"javascript.format.insertSpaceBeforeFunctionParenthesis": true,
// vetur 的自定义设置
"vetur.format.defaultFormatterOptions": {
"prettier": {
"singleQuote": true, //用单引号
"semi": false, //不加分号
"trailingComma": "none" //禁止随时添加逗号
}
},
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
},
"editor.fontSize": 16,
"[vue]": {
"editor.defaultFormatter": "octref.vetur"
},
"editor.fontLigatures": false,
"[javascript]": {
"editor.defaultFormatter": "vscode.typescript-language-features"
},
"editor.minimap.enabled": false,
"workbench.colorTheme": "Default Dark+",
"[json]": {
"editor.defaultFormatter": "HookyQR.beautify"
},
"vetur.format.defaultFormatter.js": "vscode-typescript",
}
//vscode 必装插件
any-rule
Beautify
Chinese
Eslint
express
live Sever
open in browser
open in default
Prettier - Code formatter
Vetur
vue
Vue 3 Snippets
VueHelper
vue 代码保存格式化配置
于 2021-03-04 16:16:55 首次发布