当前位置:   article > 正文

vscode中setting配置_vscode vue settting

vscode vue settting
{
  "window.zoomLevel": 0,
  "editor.formatOnSave": true,
  "editor.fontSize": 18,
  //autoFixedOnSave 设置已废弃,采用如下新的设置
  "editor.codeActionsOnSave": {
    "source.fixAll.eslint": true
  },
  // eslint 自动识别工作区
  "eslint.workingDirectories": [{ "mode": "auto" }],
  "eslint.format.enable": true,
  //autoFix默认开启,只需输入字符串数组即可
  "eslint.validate": ["javascript", "vue", "html"],

  // 防止 vetur 报错
  "vetur.validation.template": false,
  // "vetur.validation.script": false,

  // "vetur.format.defaultFormatterOptions": {
  //     "prettier": {
  //         // 格式化不加分号
  //         "semi": true,
  //         // 格式化为单引号
  //         "singleQuote": true
  //     },
  //     "js-beautify-html": {
  //         "wrap_line_length": 120,
  //         "wrap_attributes": "auto",
  //         "end_with_newline": false
  //     }
  // },
  //  #使用带引号替代双引号
  "prettier.singleQuote": true,
  // 在方法括号之间插入空格
  "javascript.format.insertSpaceBeforeFunctionParenthesis": true,
  "editor.tabSize": 2,
  "editor.wordWrap": "on",
  // 默认格式化方式,统一为 prettier
  "editor.defaultFormatter": "esbenp.prettier-vscode",
  // prettier global config
  "prettier.semi": false,
  "prettier.printWidth": 80,
  "prettier.singleQuote": true
}

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/小小林熬夜学编程/article/detail/379080
推荐阅读
相关标签
  

闽ICP备14008679号