vscode关于ESLint代码格式化的设置

{
    
    
  "editor.fontSize": 16,
  "editor.formatOnSave": true, // 保存自动格式化
  "editor.minimap.enabled": false,
  "files.autoSave": "onFocusChange",
  "workbench.startupEditor": "newUntitledFile",
  "workbench.colorTheme": "Visual Studio Dark",
  "editor.cursorBlinking": "smooth",
  "editor.fontFamily": "Courier New,Comic Sans MS, monospace,Consolas",
  "editor.fontWeight": "normal",
  "liveSassCompile.settings.autoprefix": [],
  "update.showReleaseNotes": false,
  "telemetry.enableTelemetry": false,
  "settingsSync.keybindingsPerPlatform": false,
  "editor.quickSuggestions": {
    
    
    "strings": true
  },
  "[vue]": {
    
    
    "editor.defaultFormatter": "octref.vetur"
  },
  "auto-rename-tag.activationOnLanguage": [
    "*"
  ],
  "[jsonc]": {
    
    
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  "beautify.config": "",
  "terminal.integrated.shell.windows": "C:\\WINDOWS\\System32\\cmd.exe",
  "[css]": {
    
    
    "editor.defaultFormatter": "lonefy.vscode-JS-CSS-HTML-formatter"
  },
  "editor.fontLigatures": null,
  "editor.rulers": [],
  "[javascript]": {
    
    
    "editor.defaultFormatter": "vscode.typescript-language-features"
  },
  "editor.codeActionsOnSave": null,
  "javascript.format.insertSpaceBeforeFunctionParenthesis": true,
  "tslint.autoFixOnSave": true,
  "vetur.completion.autoImport": true,
  "vetur.format.defaultFormatter.html": "js-beautify-html",
  "vetur.format.defaultFormatter.js": "vscode-typescript",
  "prettier.semi": false, // 去掉结尾逗号
  "prettier.singleQuote": true, // 使用单引号
   "prettier.printWidth": 200
}

猜你喜欢

转载自blog.csdn.net/tyoubinn/article/details/108901785