setting.json的配置

方法一

{
    "update.mode": "manual",
    "editor.formatOnSave": true,
    "editor.fontSize": 14,
    "editor.fontFamily": "Consolas, 'Courier New', monospace",
    "editor.fontWeight": "bold",
    "editor.lineHeight": 18,
    "editor.letterSpacing": 0,
    "editor.tabSize": 2,
    "editor.insertSpaces": true,
    "editor.detectIndentation": true,
    "editor.wordWrap": "off",
    "editor.renderLineHighlight": "gutter",
    "editor.roundedSelection": true,
    "editor.renderControlCharacters": true,
    "editor.renderIndentGuides": true,
    "editor.dragAndDrop": false,
    "editor.minimap.showSlider": "mouseover",
    "editor.minimap.renderCharacters": false,
    "editor.minimap.maxColumn": 90,
    "editor.quickSuggestions": {
        "strings": true
    },
    "window.titleBarStyle": "native",
    "window.menuBarVisibility": "visible",
    "window.zoomLevel": 0,
    "window.title": "${rootName} - ${dirty}${activeEditorLong}",
    "workbench.colorTheme": "Monokai",
    "workbench.iconTheme": "material-icon-theme",
    "workbench.startupEditor": "newUntitledFile",
    "workbench.activityBar.visible": true,
    "workbench.statusBar.visible": true,
    "workbench.sideBar.location": "left",
    "workbench.editor.enablePreview": true,
    "workbench.editor.tabSizing": "fit",
    "workbench.colorCustomizations": {
        // "statusBar.background": "#333333",
        // "statusBar.foreground": "#adadad",
        "terminal.background": "#000000",
        "terminal.foreground": "#FFFFFF"
    },
    "breadcrumbs.enabled": false,
    "breadcrumbs.symbolPath": "off",
    "explorer.openEditors.visible": 0,
    "files.encoding": "utf8",
    "files.eol": "\r\n",
    "files.hotExit": "onExit",
    "files.autoSave": "off",
    "extensions.autoUpdate": true,
    "emmet.includeLanguages": {
        "javascript": "javascriptreact",
        "wxml": "html"
    },
    "javascript.format.insertSpaceBeforeFunctionParenthesis": true,
    "javascript.implicitProjectConfig.experimentalDecorators": true,
    //path
    "git.path": "D:\\Git\\bin\\git.exe",
    "terminal.integrated.shell.windows": "C:\\Windows\\sysnative\\cmd.exe",
    //eslint
    "eslint.autoFixOnSave": true,
    "eslint.validate": [
        "javascript",
        "javascriptreact",
        {
            "language": "vue",
            "autoFix": true
        }
    ],
    //px to rem
    "px-to-rem.px-per-rem": 75,
    "px-to-rem.only-change-first-ocurrence": false,
    "px-to-rem.number-of-decimals-digits": 10,
    "px-to-rem.notify-if-no-changes": true,
    //npm-scripts
    "npm-scripts.showStartNotification": false,
    //simpleIcons
    "simpleIcons.hideArrows": false,
    //vetur
    "vetur.format.defaultFormatter.js": "vscode-typescript",
    "vetur.format.defaultFormatter.html": "js-beautify-html",
    "vetur.format.defaultFormatterOptions": {
        "js-beautify-html": {
            "wrap_attributes": "force-aligned"
        },
        "prettyhtml": {
            "printWidth": 100,
            "singleQuote": false
        }
    },
    "vetur.validation.template": false,
    "files.associations": {
        "*.cjson": "jsonc",
        "*.wxss": "css",
        "*.wxs": "javascript"
    },
    "minapp-vscode.disableAutoConfig": true,
    "search.followSymlinks": false,
    "team.showWelcomeMessage": false,
    "workbench.statusBar.feedback.visible": false
}

方法二

{
  // 不更新扩展
  "extensions.autoUpdate": false,
  // 不更新软件
  "update.mode": "none",
  "terminal.integrated.confirmOnExit": true,
  // "workbench.colorTheme": "One Dark Pro",
  // 文件关闭按钮
  // "workbench.editor.tabCloseButton": "off",
  // 启用导航路径
  "breadcrumbs.enabled": true,
  // 控制编辑器在空白字符上显示符号的方式。
  "editor.renderWhitespace": "none",
  // 控制编辑器是否显示控制字符。
  "editor.renderControlCharacters": true,
  // 在 Windows 上启用后台更新、启用在 Windows 上后台下载和安装新的 VS Code 版本
  "update.enableWindowsBackgroundUpdates": false,
  // "terminal.integrated.shell.windows": "C:\\Program Files\\Git\\bin\\bash.exe",
  "search.useIgnoreFiles": false,
  "git.autorefresh": false,
  "terminal.integrated.shell.windows": "C:\\Windows\\System32\\cmd.exe",
  // 控制差异编辑器是否为添加/删除的更改显示 +/- 指示符号。
  "diffEditor.renderIndicators": true,
  // "eslint.validate": [
  //   "javascript",
  //   "javascriptreact",
  //   {
  //     "language": "html",
  //     "autoFix": true
  //   },
  //   {
  //     "language": "vue",
  //     "autoFix": true
  //   }
  // ],
  // "eslint.autoFixOnSave": true,
  // "team.showWelcomeMessage": false,
  // "window.nativeTabs": true,
  "window.restoreWindows": "none",
  "window.zoomLevel": 0,
  "liveServer.settings.donotShowInfoMsg": true,
  "files.associations": {
    "*.cjson": "jsonc",
    "*.wxss": "css",
    "*.wxs": "javascript",
    "*.wpy": "vue",
    "*.vue": "vue"
  },
  "emmet.includeLanguages": {
    "wxml": "html",
    "javascript": "javascriptreact"
  },
  // html 文件 属性格式化
  // 将除第一个以外的每个属性包装起来并保持对齐。
  "html.format.wrapAttributes": "force-aligned",
  // 编辑器保存时自动格式化
  "editor.formatOnSave": true,
  // "minapp-vscode.disableAutoConfig": true,
  // 在VS代码中重命名或移动文件时启用/禁用导入路径的自动更新。需要在工作区中使用TypeScript2.9或更高版本。
  // 始终:始终自动更新路径。
  "javascript.updateImportsOnFileMove.enabled": "always",
  "files.insertFinalNewline": true, // 启用后,保存文件时在文件末尾插入一个最终新行。
  "files.trimTrailingWhitespace": true, // 启用后,将在保存文件时删除文件末尾的空格。
  "files.trimFinalNewlines": true, // 启用后,保存文件时将删除在最终新行后的所有新行。
  // "editor.fontFamily": "'Fira Code', Consolas, 'Courier New', monospace",
  // "editor.fontFamily": "Verdana",
  // "editor.fontFamily": "'Arial Rounded MT Bold'",
  // "editor.fontFamily": "Courier",
  // "editor.fontFamily": "Luminari",
  // 启用或禁用字体连字。
  "editor.fontLigatures": true,
  // "commentTranslate.targetLanguage": "zh-CN",
  "open-in-browser.default": "chrome",
  "[json]": {
    "editor.defaultFormatter": "HookyQR.beautify"
  },
  "[javascript]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  "[html]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  // "下面一行": "使用单引号取代双引号"
  "prettier.singleQuote": true,
  // "prettier.tslintIntegration": false,
  // "prettier.stylelintIntegration": false,
  // "prettier.eslintIntegration": false,
  // "下面一行": "末尾不添加分号"
  "prettier.semi": false,
  //
  // "下面两行": "使用 js-beautify-html 格式化 .vue 文件"
  "vetur.format.defaultFormatter.html": "js-beautify-html",
  "vetur.format.defaultFormatterOptions": {
    "js-beautify-html": {
      // "下面一行": "强制标签上的属性换行对齐"
      "wrap_attributes": "force-aligned"
      // "wrap_attributes": "force"
    },
    "prettier": {
      // 使用 单引号
      "singleQuote": true
    }
  },
  "prettier.disableLanguages": [
    "vue"
  ],
  // "下面两行": "给 .vue 文件中的函数名后面和 () 之间添加一个空格"
  "vetur.format.defaultFormatter.js": "vscode-typescript",
  "javascript.format.insertSpaceBeforeFunctionParenthesis": true,
  "prettier.printWidth": 20000, // 文字大小
  "editor.tabSize": 2, // 使用 tab 缩紧的时候几个空格的位置
  "editor.dragAndDrop": false, // 控制编辑器是否允许拖动来移动内容
  "editor.detectIndentation": false, // 控制打开时候自动检测插入内容是 space 还是 tab
  "editor.quickSuggestions": {
    // 是否启用代码联想
    "other": true, // 在注释和字符串外启用联想
    "comments": false, // 注释中是否启用
    "strings": false // 字符串中是否启用
  },
  // "eslint.autoFixOnSave": true,
  // 以下为 stylus  Manta's Stylus Supremacy 配置
  "stylusSupremacy.insertColons": false, // 是否插入冒号
  "stylusSupremacy.insertSemicolons": false, // 是否插入分号
  "stylusSupremacy.insertBraces": false, // 是否插入大括号
  "stylusSupremacy.insertNewLineAroundImports": false, // import之后是否换行
  "stylusSupremacy.insertNewLineAroundBlocks": false, // 两个选择器中是否换行
  // 以下为 css 配置,使用的是 csscomb 插件,如果有 prettier,需要关掉 prettier 的 css 格式化配置
  "csscomb.formatOnSave": true,
  // "csscomb.preset": "yandex",
  "csscomb.preset": {
    "remove-empty-rulesets": true, // 移除空规则集
    "always-semicolon": true, // 每个样式后面添加分号
    "lines-between-rulesets": 1, // 每个规则集后面添加一个空行
    // "color-case": "upper", // 颜色值的大小写
    // "block-indent": "  ", // 两个空格的缩进
    "leading-zero": false, // 为 0 的属性是否要加 px
    "unitless-zero": false, // 是否删除 0 值后面的单位
    "quotes": "single", // 单引号还是双引号
    // "eof-newline": false, // 分组以后,每一组之间要不要一个空行
    "space-after-colon": " ", // 在属性的 : 后面空格
    "space-before-colon": "", // 在属性的 : 前面空格
    "space-after-combinator": " ", // 在子代选择器或者相邻选择器之类的符号后面加空格
    "space-before-combinator": " ", // 在子代选择器或者相邻选择器之类的符号前面加空格
    // "space-after-opening-brace": "\n\t", // 在 { 后面设置换行或者空格
    // "space-after-selector-delimiter": "\n", // 并集选择器的 , 后面是空格或者换行
    // "space-before-selector-delimiter": "", // 并集选择器的 , 前面是空格或者换行
    "strip-spaces": true, // 修剪尾随空格
    "vendor-prefix-align": false // 是否在属性值中对齐前缀
    // 下面是分组信息
    /* "sort-order": [
        //   [
        //     "display"
        //   ],
        //   [
        //     "font",
        //     "font-family",
        //     "font-size",
        //     "font-weight",
        //     "font-style",
        //     "font-variant",
        //     "font-size-adjust",
        //     "font-stretch",
        //     "font-effect",
        //     "font-emphasize",
        //     "font-emphasize-position",
        //     "font-emphasize-style",
        //     "font-smooth",
        //     "line-height"
        //   ],
        //   [
        //     "position",
        //     "z-index",
        //     "top",
        //     "right",
        //     "bottom",
        //     "left"
        //   ],
        //   [
        //     "visibility",
        //     "float",
        //     "clear",
        //     "overflow",
        //     "overflow-x",
        //     "overflow-y",
        //     "-ms-overflow-x",
        //     "-ms-overflow-y",
        //     "clip",
        //     "zoom",
        //     "flex-direction",
        //     "flex-order",
        //     "flex-pack",
        //     "flex-align"
        //   ],
        //   [
        //     "-webkit-box-sizing",
        //     "-moz-box-sizing",
        //     "box-sizing",
        //     "width",
        //     "min-width",
        //     "max-width",
        //     "height",
        //     "min-height",
        //     "max-height",
        //     "margin",
        //     "margin-top",
        //     "margin-right",
        //     "margin-bottom",
        //     "margin-left",
        //     "padding",
        //     "padding-top",
        //     "padding-right",
        //     "padding-bottom",
        //     "padding-left"
        //   ],
        //   [
        //     "table-layout",
        //     "empty-cells",
        //     "caption-side",
        //     "border-spacing",
        //     "border-collapse",
        //     "list-style",
        //     "list-style-position",
        //     "list-style-type",
        //     "list-style-image"
        //   ],
        //   [
        //     "content",
        //     "quotes",
        //     "counter-reset",
        //     "counter-increment",
        //     "resize",
        //     "cursor",
        //     "-webkit-user-select",
        //     "-moz-user-select",
        //     "-ms-user-select",
        //     "user-select",
        //     "nav-index",
        //     "nav-up",
        //     "nav-right",
        //     "nav-down",
        //     "nav-left",
        //     "-webkit-transition",
        //     "-moz-transition",
        //     "-ms-transition",
        //     "-o-transition",
        //     "transition",
        //     "-webkit-transition-delay",
        //     "-moz-transition-delay",
        //     "-ms-transition-delay",
        //     "-o-transition-delay",
        //     "transition-delay",
        //     "-webkit-transition-timing-function",
        //     "-moz-transition-timing-function",
        //     "-ms-transition-timing-function",
        //     "-o-transition-timing-function",
        //     "transition-timing-function",
        //     "-webkit-transition-duration",
        //     "-moz-transition-duration",
        //     "-ms-transition-duration",
        //     "-o-transition-duration",
        //     "transition-duration",
        //     "-webkit-transition-property",
        //     "-moz-transition-property",
        //     "-ms-transition-property",
        //     "-o-transition-property",
        //     "transition-property",
        //     "-webkit-transform",
        //     "-moz-transform",
        //     "-ms-transform",
        //     "-o-transform",
        //     "transform",
        //     "-webkit-transform-origin",
        //     "-moz-transform-origin",
        //     "-ms-transform-origin",
        //     "-o-transform-origin",
        //     "transform-origin",
        //     "-webkit-animation",
        //     "-moz-animation",
        //     "-ms-animation",
        //     "-o-animation",
        //     "animation",
        //     "-webkit-animation-name",
        //     "-moz-animation-name",
        //     "-ms-animation-name",
        //     "-o-animation-name",
        //     "animation-name",
        //     "-webkit-animation-duration",
        //     "-moz-animation-duration",
        //     "-ms-animation-duration",
        //     "-o-animation-duration",
        //     "animation-duration",
        //     "-webkit-animation-play-state",
        //     "-moz-animation-play-state",
        //     "-ms-animation-play-state",
        //     "-o-animation-play-state",
        //     "animation-play-state",
        //     "-webkit-animation-timing-function",
        //     "-moz-animation-timing-function",
        //     "-ms-animation-timing-function",
        //     "-o-animation-timing-function",
        //     "animation-timing-function",
        //     "-webkit-animation-delay",
        //     "-moz-animation-delay",
        //     "-ms-animation-delay",
        //     "-o-animation-delay",
        //     "animation-delay",
        //     "-webkit-animation-iteration-count",
        //     "-moz-animation-iteration-count",
        //     "-ms-animation-iteration-count",
        //     "-o-animation-iteration-count",
        //     "animation-iteration-count",
        //     "-webkit-animation-direction",
        //     "-moz-animation-direction",
        //     "-ms-animation-direction",
        //     "-o-animation-direction",
        //     "animation-direction",
        //     "text-align",
        //     "-webkit-text-align-last",
        //     "-moz-text-align-last",
        //     "-ms-text-align-last",
        //     "text-align-last",
        //     "vertical-align",
        //     "white-space",
        //     "text-decoration",
        //     "text-emphasis",
        //     "text-emphasis-color",
        //     "text-emphasis-style",
        //     "text-emphasis-position",
        //     "text-indent",
        //     "-ms-text-justify",
        //     "text-justify",
        //     "letter-spacing",
        //     "word-spacing",
        //     "-ms-writing-mode",
        //     "text-outline",
        //     "text-transform",
        //     "text-wrap",
        //     "text-overflow",
        //     "-ms-text-overflow",
        //     "text-overflow-ellipsis",
        //     "text-overflow-mode",
        //     "-ms-word-wrap",
        //     "word-wrap",
        //     "word-break",
        //     "-ms-word-break",
        //     "-moz-tab-size",
        //     "-o-tab-size",
        //     "tab-size",
        //     "-webkit-hyphens",
        //     "-moz-hyphens",
        //     "hyphens",
        //     "pointer-events"
        //   ],
        //   [
        //     "opacity",
        //     "filter:progid:DXImageTransform.Microsoft.Alpha(Opacity",
        //     "-ms-filter:\\'progid:DXImageTransform.Microsoft.Alpha",
        //     "-ms-interpolation-mode",
        //     "color",
        //     "border",
        //     "border-width",
        //     "border-style",
        //     "border-color",
        //     "border-top",
        //     "border-top-width",
        //     "border-top-style",
        //     "border-top-color",
        //     "border-right",
        //     "border-right-width",
        //     "border-right-style",
        //     "border-right-color",
        //     "border-bottom",
        //     "border-bottom-width",
        //     "border-bottom-style",
        //     "border-bottom-color",
        //     "border-left",
        //     "border-left-width",
        //     "border-left-style",
        //     "border-left-color",
        //     "-webkit-border-radius",
        //     "-moz-border-radius",
        //     "border-radius",
        //     "-webkit-border-top-left-radius",
        //     "-moz-border-radius-topleft",
        //     "border-top-left-radius",
        //     "-webkit-border-top-right-radius",
        //     "-moz-border-radius-topright",
        //     "border-top-right-radius",
        //     "-webkit-border-bottom-right-radius",
        //     "-moz-border-radius-bottomright",
        //     "border-bottom-right-radius",
        //     "-webkit-border-bottom-left-radius",
        //     "-moz-border-radius-bottomleft",
        //     "border-bottom-left-radius",
        //     "-webkit-border-image",
        //     "-moz-border-image",
        //     "-o-border-image",
        //     "border-image",
        //     "-webkit-border-image-source",
        //     "-moz-border-image-source",
        //     "-o-border-image-source",
        //     "border-image-source",
        //     "-webkit-border-image-slice",
        //     "-moz-border-image-slice",
        //     "-o-border-image-slice",
        //     "border-image-slice",
        //     "-webkit-border-image-width",
        //     "-moz-border-image-width",
        //     "-o-border-image-width",
        //     "border-image-width",
        //     "-webkit-border-image-outset",
        //     "-moz-border-image-outset",
        //     "-o-border-image-outset",
        //     "border-image-outset",
        //     "-webkit-border-image-repeat",
        //     "-moz-border-image-repeat",
        //     "-o-border-image-repeat",
        //     "border-image-repeat",
        //     "outline",
        //     "outline-width",
        //     "outline-style",
        //     "outline-color",
        //     "outline-offset",
        //     "background",
        //     "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader",
        //     "background-color",
        //     "background-image",
        //     "background-repeat",
        //     "background-attachment",
        //     "background-position",
        //     "background-position-x",
        //     "-ms-background-position-x",
        //     "background-position-y",
        //     "-ms-background-position-y",
        //     "-webkit-background-clip",
        //     "-moz-background-clip",
        //     "background-clip",
        //     "background-origin",
        //     "-webkit-background-size",
        //     "-moz-background-size",
        //     "-o-background-size",
        //     "background-size",
        //     "box-decoration-break",
        //     "-webkit-box-shadow",
        //     "-moz-box-shadow",
        //     "box-shadow",
        //     "filter:progid:DXImageTransform.Microsoft.gradient",
        //     "-ms-filter:\\'progid:DXImageTransform.Microsoft.gradient",
        //     "text-shadow"
        //   ]
        // ],
        */
  },
  "minapp-vscode.disableAutoConfig": true,
  "files.autoSave": "afterDelay",
  "editor.codeActionsOnSave": {
    "source.fixAll.eslint": true
  },
  // vetur
  "vetur.format.defaultFormatter.js": "vscode-typescript",
  "emmet.includeLanguages": {
    "wxml": "html",
    "javascript": "javascriptreact"
  },
  "minapp-vscode.disableAutoConfig": true,
  "workbench.colorTheme": "Code Blue",
  "[javascript]": {
    "editor.defaultFormatter": "vscode.typescript-language-features"
  },
  "explorer.confirmDragAndDrop": false,
  "vsicons.dontShowNewVersionMessage": true,
  "[css]": {
    "editor.defaultFormatter": "mblode.pretty-formatter"
  },
  "workbench.iconTheme": "vscode-icons",
  "emmet.triggerExpansionOnTab": true,
  "explorer.confirmDelete": false,
  "cssrem.rootFontSize": 16,
  "less.compile": {
    "out": "../css/"
  },
  "editor.tokenColorCustomizations": {
    "comments": "#0dbc79", // 注释
    "keywords": "#FF8C00", // 关键字
    "fontStyle": ""
    // "variables": "#f00", // 变量名
    // "strings": "#e2d75dbd", // 字符串
    // "functions": "#5b99fcc9", // 函数名
    // "numbers": "#AE81FF" // 数字
  },
  "liveServer.settings.donotVerifyTags": true,
  "workbench.sideBar.location": "left",
  "editor.maxTokenizationLineLength": 20000000,
  "settingsSync.ignoredSettings": [],
  "settingsSync.ignoredExtensions": [
  
  ]
  // end-------------------------------------
}

你可能感兴趣的:(html)