vs code格式化代码设置

{
     
    "emmet.triggerExpansionOnTab": true,
    "editor.minimap.enabled": false,
    "workbench.activityBar.visible": true,
    "workbench.statusBar.visible": true,
    "window.menuBarVisibility": "default",
    "liveServer.settings.donotShowInfoMsg": true,
    "files.associations": {
     
      "*.cjson": "jsonc",
      "*.wxss": "css",
      "*.wxs": "javascript",
      "*.wpy": "vue"
    },
    "editor.tabSize": 2,
    "workbench.colorTheme": "Dracula Soft",
    "workbench.iconTheme": "vscode-icons",
    "vetur.validation.template": false,
    "vetur.format.defaultFormatter.js": "prettier",
    "prettier.singleQuote": true,
    "prettier.semi": false,
    "vsicons.dontShowNewVersionMessage": true,
    "[html]": {
     
      "editor.defaultFormatter": "esbenp.prettier-vscode"
    },
    "[vue]": {
     
      "editor.defaultFormatter": "esbenp.prettier-vscode"
    },
    "explorer.confirmDelete": false, // 两个选择器中是否换行
    "[javascript]": {
     
      "editor.defaultFormatter": "vscode.typescript-language-features"
    },
    "[jsonc]": {
     
      "editor.defaultFormatter": "esbenp.prettier-vscode"
    },
    "vetur.validation.script": false,
    "editor.codeActionsOnSave": {
     
      "source.fixAll.eslint": true
    },
    "eslint.format.enable": true,
    "eslint.validate": [
      "javascript",
      "vue",
      "html"
    ],
    "explorer.confirmDragAndDrop": false,
    "extensions.autoCheckUpdates": false,
    "extensions.autoUpdate": false,
    "update.mode": "none",
    "update.enableWindowsBackgroundUpdates": false,
  }

你可能感兴趣的:(前端)