VS Code 配置项

-------- 以下是 2018.01.07 编辑内容 -----------------

{
  "sublimeTextKeymap.promptV3Features": true,
  "editor.multiCursorModifier": "ctrlCmd",
  "editor.snippetSuggestions": "bottom",
  "editor.formatOnPaste": true,
  "workbench.iconTheme": "material-icon-theme",
  "editor.tabSize": 2,
  "editor.fontFamily": "Monaco, Menlo",
  // "editor.fontWeight": "300",
  "editor.fontSize": 14,
  "files.associations": {
    "*.js": "javascriptreact"
  },
  "editor.matchBrackets": false,
  "emmet.syntaxProfiles": {
    "javascript": "jsx"
  },
  "prettier.singleQuote": true,
  "prettier.bracketSpacing": true,
  "prettier.printWidth": 80,
  "prettier.semi": false,
  "prettier.eslintIntegration": true,
  "prettier.arrowParens": "always",
  "explorer.confirmDragAndDrop": false,
  "workbench.startupEditor": "newUntitledFile",
  "explorer.confirmDelete": false,
  "emmet.triggerExpansionOnTab": true,
  "emmet.includeLanguages": {
    "javascript": "javascriptreact",
    "vue-html": "html",
    "plaintext": "jade"
  },
  "stylusSupremacy.insertBraces": false,
  "stylusSupremacy.insertColons": true,
  "stylusSupremacy.insertSemicolons": false,
  "eslint.validate": [
    "javascript",
    "javascriptreact",
    {
      "language": "vue",
      "autoFix": true
    }
  ],
  "editor.tabCompletion": true,
  // "vetur.format.defaultFormatter.js": "vscode-typescript",
  "editor.rulers": [
    80,
    100
  ],
  "material-icon-theme.showUpdateMessage": false,
}

---------------- 以下 2017.12.06 编辑内容 ------------

{
  "workbench.startupEditor": "newUntitledFile",
  "workbench.iconTheme": "material-icon-theme",
  "editor.fontSize": 15,
  "editor.fontFamily": "Monaco",
  "editor.tabSize": 2,
  "sublimeTextKeymap.promptV3Features": true,
  "editor.multiCursorModifier": "ctrlCmd",
  "editor.snippetSuggestions": "top",
  "editor.formatOnPaste": false,
  "editor.matchBrackets": false,
  "files.associations": {
    "*.jsx": "javascriptreact",
    "*.js": "javascriptreact"
  },
  "emmet.includeLanguages": {
    "javascript": "javascriptreact"
  },
  "emmet.triggerExpansionOnTab": true,
  "prettier.singleQuote": true,
  "explorer.confirmDragAndDrop": false,
  "explorer.confirmDelete": true,
  "extensions.ignoreRecommendations": true,
  "todohighlight.isEnable": true,
  "files.exclude": {
    "**/.idea": true
  },
  "prettier.eslintIntegration": true,
  "prettier.trailingComma": "all",
  "prettier.semi": false,
  "javascript.implicitProjectConfig.experimentalDecorators": true
}

  • "prettier.singleQuote": true,
    单引号

  • "prettier.eslintIntegration": true,
    prettier按照eslint约定的规范来格式化

  • "prettier.trailingComma": "all",
    所有的对象和数组最后一项的末尾都要写逗号

  • ·"prettier.semi": false,
    不要分号

  • "javascript.implicitProjectConfig.experimentalDecorators": true
    js中使用装饰器不会报错

你可能感兴趣的:(VS Code 配置项)