常用 vscode 配置

{
  "workbench.iconTheme": "vscode-icons",
  // tab 大小为2个空格
  "editor.tabSize": 2,
  // 100 列后换行
  "editor.wordWrapColumn": 160,
  // 开启 vscode 文件路径导航
  "breadcrumbs.enabled": true,
  // prettier 设置语句末尾不加分号
  "prettier.semi": false,
  // prettier 设置强制单引号
  "prettier.singleQuote": true,
  // 显示 markdown 中英文切换时产生的特殊字符
  "editor.renderControlCharacters": true,
  // 设置 eslint 保存时自动修复
  "eslint.autoFixOnSave": true,
  // eslint 检测文件类型
  "eslint.validate": [
    "vue",
    "html",
    "javascript",
    "typescript",
    "javascriptreact",
    "typescriptreact"
  ],
  "vetur.format.defaultFormatterOptions": {

    "js-beautify-html": {
        "wrap_attributes": "aligned-multiple"
    },
    "prettyhtml": {
        "printWidth": 100,
        "singleQuote": false,
        "wrapAttributes": false,
        "sortAttributes": false
    }
},
"vetur.format.defaultFormatter.html": "js-beautify-html",
"vetur.format.defaultFormatter.js": "vscode-typescript",
// "editor.codeActionsOnSave": {
//   "source.fixAll.eslint": true
// },
"[vue]": {
  "editor.defaultFormatter": "octref.vetur"
},
"[html]": {
  "editor.defaultFormatter": "HookyQR.beautify"
},
// 将小程序代码高亮显示
"files.associations": {
  "*.wxml": "html",
  "*.wxss": "css",
},
"eslint.alwaysShowStatus": true,
// 设置 eslint 保存时自动修复
"eslint.autoFixOnSave": true,
"diffEditor.ignoreTrimWhitespace": false,
"explorer.compactFolders": false,
"[javascript]": {
  "editor.defaultFormatter": "HookyQR.beautify"
},
"[json]": {
  "editor.defaultFormatter": "HookyQR.beautify"
},
"editor.fontSize": 16,
"editor.minimap.maxColumn": 160,
"eslint.migration.2_x": "off",
"[css]": {
  "editor.defaultFormatter": "HookyQR.beautify"
},
"search.followSymlinks": false,
"thiefBook.filePath": "D:\\work2\\11.txt",
"thiefBook.currPageNumber": 1,
"thiefBook.pageSize": 200

}
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值