Skip to content
官方QQ交流群
技术交流1:87208295   点此加入
技术交流2:787747122   点此加入
官网
云控制台
开放平台
关注微信公众号
代码仓库: 码云

settings.json配置

1、打开vscode 2、快捷键

  • win系统:ctrl + shift + p
  • mac系统:command+shift + p

3、搜索 首选项:打开设置 ,选择

image.png

4、粘贴以下配置代码

json
{
  "search.useIgnoreFiles": false,
  "emmet.syntaxProfiles": {
    "vue-html": "html",
    "vue": "html"
  },
  "files.autoSave": "off",
  "eslint.validate": [
    "javascript",
    "javascriptreact",
    "vue",
    "html",
  ],
  "eslint.options": {
    "overrideConfig": {
      "plugins": [
        "vue",
        "html",
        "import",
        "promise"
      ],
    }
  },
  "workbench.colorTheme": "Default Light+",
  "workbench.sideBar.location": "left",
  "workbench.startupEditor": "welcomePage",
  "workbench.editorAssociations": {
    "*.ipynb": "jupyter.notebook.ipynb"
  },
  "editor.wordWrap": "wordWrapColumn",
  "editor.formatOnSave": true,
  "editor.wordWrapColumn": 300,
  "editor.rulers": [
    300
  ],
  "editor.codeActionsOnSave": {},
  "editor.quickSuggestions": {},
  "editor.wordSeparators": "`~!@#%^&*()-=+[{]}\\|;:'\",.<>/?",
  "editor.detectIndentation": false,
  "editor.semanticTokenColorCustomizations": {},
  "editor.suggestSelection": "first",
  "html.format.unformatted": "",
  "html.format.wrapLineLength": 300,
  "html.format.wrapAttributes": "aligned-multiple",
  "vetur.experimental.templateInterpolationService": false,
  "vetur.format.defaultFormatter.html": "js-beautify-html",
  "vetur.format.defaultFormatter.js": "vscode-typescript",
  "vetur.format.defaultFormatter.ts": "vscode-typescript",
  "vetur.format.defaultFormatterOptions": {
    "js-beautify-html": {
      "wrap_line_length": 150,
      "wrap_attributes": "auto",
      "end_with_newline": false
    },
    "prettyhtml": {
      "printWidth": 200,
      "singleQuote": false,
      "wrapAttributes": false,
      "sortAttributes": false
    },
    "prettier": {
      "proseWrap": "never",
      "printWidth": 200,
      "semi": true,
      "singleQuote": false
    }
  },
  "explorer.confirmDragAndDrop": false,
  "files.exclude": {
    "**/dist": true,
    "**/node_modules": true,
    "**/unpackage": true,
    "**/.classpath": true,
    "**/.project": true,
    "**/.settings": true,
    "**/.factorypath": true
  },
  "files.associations": {
    // vue文件自动补齐 html相关
    // "*.vue": "html"
  },
  "diffEditor.renderSideBySide": false,
  "diffEditor.ignoreTrimWhitespace": false,
  "search.followSymlinks": false,
  "php.validate.executablePath": "/usr/bin/php",
  "php.suggest.basic": false,
  "php.executablePath": "/usr/bin/php",
  "python.linting.maxNumberOfProblems": 100,
  "python.formatting.yapfArgs": [
    "--style",
    "{column_limit: 200}"
  ],
  "python.terminal.launchArgs": [],
  "python.formatting.autopep8Args": [
    "--max-line-length=300"
  ],
  "vsintellicode.modify.editor.suggestSelection": "automaticallyOverrodeDefaultValue",
  "java.project.importHint": false,
  "window.openFilesInNewWindow": "on",
}

Copyright © 2017 10yun.com | 十云提供计算服务-IPV6 | ctocode组开发