自用 vscode setting.json配置

{
  "workbench.editor.enablePreview": false, //打开文件不覆盖
  "editor.minimap.enabled": false, //关闭快速预览
  "files.autoSave": "afterDelay", //打开自动保存
  //autoFixedOnSave 设置已废弃,采用如下新的设置
  "editor.codeActionsOnSave": {
    "source.fixAll.eslint": true
  },
  "eslint.format.enable": true,
  //autoFix默认开启,只需输入字符串数组即可
  "eslint.validate": [
    "javascript",
    "vue",
    "html"
  ],
  "explorer.confirmDelete": false,
  "files.autoSaveDelay": 1500,
  "file_peek.searchFileExtensions": [
    ".js",
    ".ts",
    ".html",
    ".css",
    ".scss",
    ".vue"
  ],
  "window.zoomLevel": 0,
  "terminal.integrated.rendererType": "dom",
  "eslint.autoFixOnSave": true,
  "editor.formatOnSave": true,
  "eslint.lintTask.enable": true,
  "extensions.confirmedUriHandlerExtensionIds": [],
  "vetur.format.defaultFormatterOptions": {
    "prettier": {
      // 格式化不加分号
      "semi": false,
      // 格式化为单引号
      "singleQuote": true
    }
  },
  "prettier.semi": false,
  "prettier.singleQuote": true,
  // 在方法括号之间插入空格
  "javascript.format.insertSpaceBeforeFunctionParenthesis": true,
  "javascript.updateImportsOnFileMove.enabled": "always",
  "javascript.format.insertSpaceAfterSemicolonInForStatements": false,
  "[javascript]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  "[vue]": {
    "editor.defaultFormatter": "octref.vetur"
  },
  "[json]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  "[html]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  "editor.fontLigatures": null,
  "editor.parameterHints": true,
  "editor.parameterHints.enabled": true,
  "editor.quickSuggestions": {
    "other": true,
    "comments": true,
    "strings": true
  }
}

 

你可能感兴趣的:(自用 vscode setting.json配置)