记录 vs code 的配置文件

292 阅读1分钟
{
  "window.zoomLevel": 1,
  "markdown.preview.fontSize": 14,
  "editor.fontSize": 13,
  "editor.wordWrap": "on",
  "editor.tabSize": 2,

  "files.associations": {
    "*.cjson": "jsonc",
    "*.wxss": "css",
    "*.wxs": "javascript",
    "*.swan": "html",
    "*.wxml": "html"
  },

  "emmet.includeLanguages": {
    "wxml": "html"
  },

  "beautify.ignore": ["**/*.js", "**/*.wxss", "**/*.json"],
  "beautify.language": {
    "html": ["wxml", "htm", "html"]
  },
  // 是否使用单引号
  "prettier.singleQuote": true,

  "prettier.tabWidth": 2,
  "beautify.config": {
    "indent_size": 4,
    "end_with_newline": true,
    "html": {
      "wrap_attributes": "force-aligned"
    }
  },

  "[css]": {
    "editor.tabSize": 2,
    "editor.defaultFormatter": "HookyQR.beautify"
  },

  "minapp-vscode.disableAutoConfig": true,
  "gitlens.advanced.messages": {
    "suppressShowKeyBindingsNotice": true
  },

  "editor.minimap.enabled": false,
  "window.titleBarStyle": "native",
  "[jsonc]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },

  "git.enableSmartCommit": true,
  "vetur.format.defaultFormatterOptions": {
    "js-beautify-html": {
      "indent_size": 4,
      "wrap_attributes": "force-aligned"
    },
    "prettyhtml": {
      "tabWidth": 4,
      "printWidth": 100,
      "singleQuote": false,
      "wrapAttributes": false,
      "sortAttributes": true
    }
  },

  "vetur.format.defaultFormatter.html": "js-beautify-html",
  "diffEditor.ignoreTrimWhitespace": true,
  "update.channel": "none",
  "update.enableWindowsBackgroundUpdates": false,

  "files.exclude": {
    "node_modules/": false
  },
  "workbench.startupEditor": "newUntitledFile",

  "fileheader.Author": "tom",
  "fileheader.LastModifiedBy": "jerry",

  "[json]": {
    "editor.defaultFormatter": "HookyQR.beautify"
  },

  "[javascript]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },

  // 保存时自动修复错误
  "eslint.autoFixOnSave": true,

  // 保存自动格式化
  "editor.formatOnSave": true,

  "eslint.validate": [
    "javascript",
    "html",
    "typescript",
    "javascriptreact",
    "typescriptreact",
    {
    "language": "html",
    "autoFix": true
    },

    {
    "language": "vue",
    "autoFix": true
    }
  ],

  "terminal.integrated.shell.windows": "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe",

  "[wxml]": {
    "editor.defaultFormatter": "HookyQR.beautify"
  },

  "[html]": {
    "editor.defaultFormatter": "HookyQR.beautify"
  },

  "workbench.iconTheme": "vscode-icons",
  "telemetry.enableCrashReporter": false,
  "vsicons.dontShowNewVersionMessage": true,
  "breadcrumbs.enabled": true,
  "files.trimTrailingWhitespace": true,
  "editor.suggest.snippetsPreventQuickSuggestions": false,

  "less.compile": {
    // "compress": true, // 是否删除多余空白字符
    // "sourceMap": false, // 是否创建文件目录树,true的话会自动生成一个 .css.map 文件
    // "out": false, // 是否输出css文件,false为不输出
    // "outExt": ".wxss" // 输出文件的后缀,默认为.css
  },

  "[vue]": {
    "editor.defaultFormatter": "octref.vetur"
  },

  "sync.gist": "814f8e7e41da4ea6eb21d97015366de5",
  "[typescriptreact]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  "terminal.integrated.rendererType": "dom",
  "vscode_vibrancy.theme": "Default Dark"
}