前端使用vscode中setting.json常用设置

{
  // 字体大小
  "window.zoomLevel": 1,
  "search.followSymlinks": false,
  // "editor.formatOnSave": true,
  // "eslint.autoFixOnSave": true,
 
  "emmet.syntaxProfiles": {
    "javascript": "jsx",
    "vue": "html",
    "vue-html": "html"
  },
  "editor.tabSize": 4,
  "files.associations": {
    "*.vue": "vue",
    "*.js": "javascriptreact"
  },
  "eslint.options": {
    "extensions": [
      ".js",
      ".vue"
    ]
  },
  "search.exclude": {
    "**/node_modules": true,
    "**/bower_components": true,
    "**/dist": true
  },
  "git.confirmSync": false,
  "javascript.implicitProjectConfig.experimentalDecorators": true,
  "editor.renderWhitespace": "boundary",
  "editor.cursorBlinking": "smooth",
  "editor.minimap.enabled": true,
  "editor.minimap.renderCharacters": false,
  "window.title": "${dirty}${activeEditorMedium}${separator}${rootName}",
  "editor.codeLens": true,
  "editor.snippetSuggestions": "top",
  "editor.fontWeight": "normal",
  "editor.fontSize": 14,
  "editor.rulers": [ //代码长度
    120
  ],
  "workbench.colorTheme": "One Dark Pro", //主题
  "workbench.iconTheme": "vscode-icons",
  "files.autoSave": "onWindowChange",
  "terminal.integrated.rendererType": "dom",
  "liveServer.settings.donotShowInfoMsg": true,
  "editor.codeActionsOnSave": {
    "source.fixAll.eslint": true
  },
  "git.autofetch": true,
  "git.enableSmartCommit": true, //图标
}

你可能感兴趣的:(前端使用vscode中setting.json常用设置)