vscode个人配置

settting.json
配置

{
  "files.autoSave": "onFocusChange",
  "editor.fontSize": 16,
  "editor.tabSize": 2,
  "editor.minimap.enabled": false,
  "workbench.colorTheme": "Monokai",
  "[typescriptreact]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  "[typescript]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  "[less]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  "editor.codeActionsOnSave": {
    // 保存时自动修复
    "source.fixAll.eslint": true
  },
  "eslint.options": {
    //指定vscode的eslint所处理的文件的后缀
    "extensions": [".js", ".vue", ".ts", ".tsx"]
    // "configFile": "/Users/monro/Documents/workspace/tuya-standard-panel/TYPublishBluetoothSoundBox/.eslintrc.js"
  },
  "editor.snippetSuggestions": "top",
  "eslint.validate": [
    "javascript",
    "javascriptreact",
    "typescript",
    "typescriptreact",
    "html",
    "vue"
  ],
  "eslint.codeAction.showDocumentation": {
    "enable": true
  },
  "eslint.packageManager": "yarn",
  // 关闭js/ts的默认format,统一用eslint进行格式化(tslint已经不维护了,所以转eslint吧)
  "javascript.format.enable": false,
  "typescript.format.enable": false,
  "terminal.integrated.allowChords": false,
  "git.autofetch": true,
  "prettier.printWidth": 80,
  "explorer.confirmDelete": false,
  "i18n-ally.ignoredLocales": [],
  "git.confirmSync": false,
  "[json]": {
    "editor.defaultFormatter": "vscode.json-language-features"
  },
  "diffEditor.ignoreTrimWhitespace": false,
  "explorer.confirmDragAndDrop": false,
  "javascript.updateImportsOnFileMove.enabled": "always",
  "git.enableSmartCommit": true,
  "editor.formatOnSave": true,
  "eslint.codeActionsOnSave.rules": [],
  "eslint.trace.server": "off",
  "terminal.integrated.enableMultiLinePasteWarning": false,
  "sync.gist": "0c8b8b27f7a7ab07b7865d4246fac517",
  "sync.autoDownload": false,
  "sync.autoUpload": false,
  "sync.forceDownload": false,
  "sync.forceUpload": false,
  "sync.quietSync": false,
  "sync.syncExtensions": true,
  "[jsonc]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  "security.workspace.trust.untrustedFiles": "open",
  "[javascript]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  "workbench.startupEditor": "none",
  "[vue]": {
    "editor.defaultFormatter": "octref.vetur"
  },
  "eslint.rules.customizations": []
}

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值