{
    // 自动换行
    "editor.wordWrap": "on",
    // vscode默认启用了根据文件类型自动设置tabsize的选项
    "editor.detectIndentation": false,
    // 重新设定tabsize
    "editor.tabSize": 2,
    // #每次保存的时候自动格式化
    "editor.formatOnSave": true,
    //  #让函数(名)和后面的括号之间加个空格
    "javascript.format.insertSpaceBeforeFunctionParenthesis": true,
    // #这个按用户自身习惯选择
    "vetur.format.defaultFormatter.html": "js-beautify-html",
    // #让vue中的js按编辑器自带的ts格式进行格式化
    "vetur.format.defaultFormatter.js": "vscode-typescript",
    // 添加emmet支持vue文件
    "emmet.includeLanguages": {
      "wxml": "html",
      "vue": "html"
    },
    // 给js-beautify-html设置属性隔断
    "vetur.format.defaultFormatterOptions": {
      "js-beautify-html": {
        "wrap_attributes": "auto",
        "wrap_line_length": 200,
        "end_with_newline": false
      },
      "prettyhtml": {
        "printWidth": 200,
        "singleQuote": false,
        "wrapAttributes": false,
        "sortAttributes": false
      },
      "prettier": {
        "semi": false,
        "singleQuote": true
      }
    },
    // style默认偏移一个indent
    "vetur.format.styleInitialIndent": true,
    // 定义匿名函数的函数关键字后面的空格处理。
    "javascript.format.insertSpaceAfterFunctionKeywordForAnonymousFunctions": true,
    // 定义函数参数括号前的空格处理方式。
    "typescript.format.insertSpaceBeforeFunctionParenthesis": true,
    "vetur.ignoreProjectWarning": true,
    "explorer.confirmDelete": false,
    "editor.fontLigatures": null,
    "editor.showFoldingControls": "always"
  }

煌大河ゞ
18 声望2 粉丝