美文网首页前端
VSCODE的个人配置

VSCODE的个人配置

作者: 道简术心 | 来源:发表于2018-10-06 09:27 被阅读49次
    {
      "files.autoSave": "onFocusChange",
      "editor.formatOnPaste": true,
      "editor.formatOnSave": true,
      "editor.formatOnType": true,
      "editor.detectIndentation": false,
      "eslint._legacyModuleResolve": true,
      "eslint.alwaysShowStatus": true,
      //配置eslint
      "eslint.autoFixOnSave": true,
      "editor.fontSize": 14,
      "editor.fontFamily": "Consolas",
      //换行
      "editor.wordWrap": "on",
      "editor.renderWhitespace": "boundary",
      "editor.tabSize": 2,
      "editor.useTabStops": false,
      "eslint.validate": [
        "javascript",
        "javascriptreact",
        "html",
        {
          "language": "vue",
          "autoFix": true
        }
      ],
      "eslint.options": {
        "plugins": ["html"]
      },
      //关闭自动更新扩展
      "extensions.autoUpdate": false,
      "files.trimTrailingWhitespace": false,
      "files.autoSaveDelay": 3000,
      // gitlens配置
      "gitlens.advanced.messages": {
        "suppressCommitHasNoPreviousCommitWarning": true,
        "suppressCommitNotFoundWarning": true,
        "suppressFileNotUnderSourceControlWarning": true,
        "suppressGitVersionWarning": true,
        "suppressLineUncommittedWarning": true,
        "suppressNoRepositoryWarning": true,
        "suppressResultsExplorerNotice": true,
        "suppressShowKeyBindingsNotice": true
      },
      "git.confirmSync": false,
      "html.format.indentInnerHtml": true,
      "html.validate.scripts": true,
      "typescript.validate.enable": true,
      "javascript.validate.enable": true,
      "javascript.format.enable": true,
      "javascript.format.insertSpaceBeforeFunctionParenthesis": true,
      "css.validate": false,
      "less.validate": false,
      "search.followSymlinks": false,
      "scss.validate": true,
      "typescript.format.insertSpaceAfterFunctionKeywordForAnonymousFunctions": true,
      "typescript.format.insertSpaceAfterKeywordsInControlFlowStatements": true,
      "typescript.format.insertSpaceBeforeFunctionParenthesis": true,
      //右键格式化文件
      "vetur.format.defaultFormatter.html": "js-beautify-html",
      "vetur.format.defaultFormatter.js": "vscode-typescript",
      "vetur.format.defaultFormatter.scss": "prettier",
      "vetur.validation.template": true,
      "vetur.format.defaultFormatterOptions": {
        "js-beautify-html": {
          "wrap_attributes": "force-aligned"
          // #vue组件中html代码格式化样式
        }
      },
      "vetur.format.defaultFormatter.stylus": "stylus-supremacy",
      "workbench.startupEditor": "newUntitledFile",
      "workbench.iconTheme": "vscode-icons",
    }

    相关文章

      网友评论

        本文标题:VSCODE的个人配置

        本文链接:https://www.haomeiwen.com/subject/hpgcaftx.html