vscode的settings.json配置样例

{
  "prettier.eslintIntegration": true,
  "search.followSymlinks": false,
  "editor.formatOnSave": false,
  "editor.codeActionsOnSave": {
    // For ESLint
    "source.fixAll.eslint": true,
    // For TSLint
    "source.fixAll.tslint": true,
    // For Stylelint
    "source.fixAll.stylelint": true
  },
  "eslint.validate": [
    "javascript",
    "javascriptreact",
    "html",
    "vue",
    "typescript",
    "typescriptreact"
  ],
  "emmet.syntaxProfiles": {
    "javascript": "jsx",
    "vue": "html",
    "vue-html": "html"
  },
  "editor.tabSize": 2,
  "files.associations": {
    "*.vue": "vue"
  },
  "eslint.options": {
    "extensions": [".js", ".vue", ".ts", ".tsx"]
  },
  "search.exclude": {
    "**/node_modules": true,
    "**/bower_components": true,
    "**/dist": true
  },
  "git.confirmSync": false,
  // "javascript.implicitProjectConfig.experimentalDecorators": true, //已废弃
  "editor.renderWhitespace": "trailing",
  "editor.cursorBlinking": "smooth",
  "editor.minimap.enabled": true,
  "editor.minimap.renderCharacters": false,
  //"editor.fontFamily": "'Droid Sans Mono', 'Courier New', monospace, 'Droid Sans Fallback'",
  "window.title": "${dirty}${activeEditorMedium}${separator}${rootName}",
  "editor.codeLens": true,
  "editor.snippetSuggestions": "top",
  "editor.fontWeight": "normal",
  "stylelint.enable": true,
  "editor.fontSize": 16,
  "editor.rulers": [
    //代码长度
    120
  ],
  "workbench.colorTheme": "One Dark Pro",
  "terminal.integrated.shell.windows": "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe",
  "eslint.runtime": "",
  "gitlens.modes": {},
  "html.format.contentUnformatted": "",
  "workbench.editor.enablePreview": false,
  "git.suggestSmartCommit": false,
  "workbench.startupEditor": "newUntitledFile",
  "projectManager.any.ignoredFolders": ["out", "typings", "test"],
  "editor.fontLigatures": null,
  "path-intellisense.mappings": {
    "@": "${workspaceFolder}/src"
  },
  "[jsonc]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  "workbench.iconTheme": "vscode-icons-mac",
  "eslint.nodeEnv": "",
  "js/ts.implicitProjectConfig.experimentalDecorators": true
}

你可能感兴趣的:(vscode的settings.json配置样例)