vscode常用配置和插件

2019-11-26  本文已影响0人  青争小台

常用配置

{
    "files.autoSave": "off",
    "breadcrumbs.enabled": true,
    "vetur.validation.template": false,
    "window.zoomLevel": 0,
    "explorer.confirmDragAndDrop": false,
    "javascript.format.insertSpaceBeforeFunctionParenthesis": true,
    "breadcrumbs.symbolPath": "off",
    "window.title": "${rootName}#${activeEditorMedium}",
    "search.location": "panel",
    "eslint.autoFixOnSave": true,
    "javascript.updateImportsOnFileMove.enabled": "never",
    "javascript.implicitProjectConfig.experimentalDecorators": true,
    "[javascript]": {
        "editor.defaultFormatter": "vscode.typescript-language-features"
    },
    //格式化去掉分号
    "vetur.format.defaultFormatterOptions": {
        "prettier": {
            // 格式化不加分号
            "semi": false,
            // 格式化为单引号
            "singleQuote": true
        }
    },
    // 在方法括号之间插入空格
    "javascript.format.insertSpaceBeforeFunctionParenthesis": true
}

常用配置1

{
  "files.autoSave": "off",
  "breadcrumbs.enabled": true,
  "vetur.validation.template": false,
  "window.zoomLevel": 2,
  "explorer.confirmDragAndDrop": false,
  "javascript.format.insertSpaceBeforeFunctionParenthesis": true,
  "breadcrumbs.symbolPath": "off",
  "window.title": "${rootName}#${activeEditorMedium}",
  "eslint.autoFixOnSave": true,
  "javascript.updateImportsOnFileMove.enabled": "never",
  "javascript.implicitProjectConfig.experimentalDecorators": true,
  "[javascript]": {
      "editor.defaultFormatter": "vscode.typescript-language-features"
  },
  //格式化去掉分号
  "vetur.format.defaultFormatterOptions": {
      "prettier": {
          // 格式化不加分号
          "semi": false,
          // 格式化为单引号
          "singleQuote": true,
          "printWidth":120,
          //格式化不加逗号
          "trailingComma": "none"
      }
  },
  "editor.codeActionsOnSave": {
    "source.fixAll.eslint": true
  },
  "git.confirmSync": false,
  "git.suggestSmartCommit": false,
  "[markdown]": {
  
    "editor.wordWrap": "on",
    "editor.quickSuggestions": false
  },
  "[jsonc]": {
    "editor.defaultFormatter": "vscode.json-language-features"
  },
  "[vue]": {
    "editor.defaultFormatter": "octref.vetur"
  }
}

常用插件

划线的不用下载


e9b2fdd8-bb34-4938-a607-d1b4871ac1d9.jpg
上一篇下一篇

猜你喜欢

热点阅读