Skip to content
On this page

vscode 设置文件 settings.json

json
{
  "workbench.iconTheme": "material-icon-theme",
  "sublimeTextKeymap.promptV3Features": true,
  "editor.multiCursorModifier": "ctrlCmd",
  "editor.snippetSuggestions": "top",
  "editor.formatOnPaste": false,
  "explorer.confirmDelete": false,
  "px-to-rem.px-per-rem": 75,
  "vetur.validation.template": false,
  "editor.formatOnSave": false,
  "editor.formatOnType": true,

  "emmet.syntaxProfiles": {
    "vue-html": "html",
    "vue": "html"
  },
  "vetur.format.defaultFormatter.html": "js-beautify-html",
  "vetur.format.defaultFormatterOptions": {
    "wrap_attributes": "force-aligned"
  },
  // "vetur.format.defaultFormatter.js": "prettier",
  "vetur.useWorkspaceDependencies": true,
  "editor.codeActionsOnSave": {
    "editor.codeActionsOnSaveTimeout": 5000,
    "source.fixAll.eslint": true
  },
  "[javascript]": {
    "editor.defaultFormatter": "HookyQR.beautify"
  },
  "editor.suggestSelection": "first",
  "vsintellicode.modify.editor.suggestSelection": "automaticallyOverrodeDefaultValue",
  "search.followSymlinks": false,
  "files.exclude": {
    "**/.git": true,
    "**/.svn": true,
    "**/.hg": true,
    "**/CVS": true,
    "**/.DS_Store": true,
    "**/tmp": true,
    "**/node_modules": true,
    "**/bower_components": true,
    "**/dist": true
  },
  "files.watcherExclude": {
    "**/.git/objects/**": true,
    "**/.git/subtree-cache/**": true,
    "**/node_modules/**": true,
    "**/tmp/**": true,
    "**/bower_components/**": true,
    "**/dist/**": true
  },
  "[json]": {
    "editor.defaultFormatter": "vscode.json-language-features"
  },
  "typescript.updateImportsOnFileMove.enabled": "never",
  "editor.tabSize": 2,
  "sync.gist": "cb3931501bb9a856060f327a03642118",
  "terminal.integrated.shell.osx": "/bin/bash",
  "diffEditor.ignoreTrimWhitespace": false,
  "workbench.editor.untitled.hint": "hidden",
  "[html]": {
    "editor.defaultFormatter": "vscode.html-language-features"
  },
  "[yaml]": {
    "editor.defaultFormatter": "redhat.vscode-yaml"
  },
  "redhat.telemetry.enabled": false,
  "javascript.updateImportsOnFileMove.enabled": "never",
  "vetur.validation.script": false,
  "bracketPairColorizer.depreciation-notice": false,
  "[typescript]": {
    "editor.defaultFormatter": "vscode.typescript-language-features"
  },
  "[css]": {
    "editor.defaultFormatter": "vscode.css-language-features"
  },
  "[less]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  "git.terminalAuthentication": false,
  "files.associations": {
    "*.vue": "vue"
  },
  "githubPullRequests.pullBranch": "never"
  // "[vue]": {
  //   "editor.defaultFormatter": "esbenp.prettier-vscode"
  // },
  // "bookmarks.useWorkaroundForFormatters": true,
  // "[less]": {
  //   "editor.defaultFormatter": "esbenp.prettier-vscode"
  // },
  // "[jsonc]": {
  //   "editor.defaultFormatter": "esbenp.prettier-vscode"
  // }
}