vscode 代碼自動保存

{
  "git.path": "D:/Git/bin/git.exe",
  "telemetry.enableTelemetry": false,
  "editor.fontSize": 12,
  "telemetry.enableCrashReporter": false,
  "window.openFoldersInNewWindow": "on",
  "vetur.validation.template": false,
  "window.newWindowDimensions": "inherit",
  "files.eol": "\n",
  "prettier.endOfLine": "lf",
  // vscode默認啓用了根據文件類型自動設置tabsize的選項
  "editor.detectIndentation": false,
  // 從新設定tabsize
  "editor.tabSize": 2,
  // #每次保存的時候自動格式化 
  "editor.formatOnSave": true,
  // #每次保存的時候將代碼按eslint格式進行修復
  //  #讓prettier使用eslint的代碼格式進行校驗 
  "prettier.eslintIntegration": true,
  //  #去掉代碼結尾的分號 
  "prettier.semi": false,
  //  #使用帶引號替代雙引號 
  "prettier.singleQuote": false,
  "javascript.preferences.quoteStyle": "double",
  "typescript.preferences.quoteStyle": "double",
  "prettier.tslintIntegration": true,
  "vetur.format.defaultFormatter.html": "js-beautify-html",
  "editor.minimap.enabled": false,
  "typescript.updateImportsOnFileMove.enabled": "always",
  "window.zoomLevel": 0.3,
  "[json]": {
    "editor.defaultFormatter": "vscode.json-language-features"
  },
  "javascript.implicitProjectConfig.experimentalDecorators": true,
  "[javascript]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  "terminal.integrated.shell.windows": "C:\\WINDOWS\\System32\\cmd.exe",
  "editor.codeActionsOnSave": {
    "source.fixAll.eslint": true
  },
  "[go]": {
    "editor.fontSize": 10,
  },
  "files.autoSaveDelay": 180,
  "eslint.codeAction.disableRuleComment": {}
}
相關文章
相關標籤/搜索