注释这句代码后就不会在保存的时候自动把单引号变成双引号,也不会自动添加分号,在格式化的时候选择默认使用vetur
在这里插入图片描述

在这里插入图片描述

{
  "[javascript]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  "[vue]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  "[html]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  "files.autoGuessEncoding": true,
  "editor.quickSuggestions": null,
  "editor.suggest.snippetsPreventQuickSuggestions": false,
  "files.associations": {
    "*.vue": "html"
  },
  "settingsSync.ignoredSettings": [
    "prettier.singleQuote",
    "prettier.jsxSingleQuote"
  ],
  "prettier.singleQuote": true,
  "prettier.semi": true,
  // "editor.formatOnSave": true,
  "editor.formatOnPaste": true,
  "editor.formatOnType": true,
  "settingsSync.ignoredExtensions": [],
  "[jsonc]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  "vetur.format.defaultFormatterOptions": {
    "prettier": {
      "singleQuote": true,
      "semi": false
    }
  }
}

Logo

前往低代码交流专区

更多推荐