vscode配置


常用配置 包含PHP Vue Python Java

{
  "editor.fontFamily": "Fira Code",
  "editor.fontLigatures": true,
  // "editor.renderWhitespace": "boundary",
  "editor.fontSize": 17,
  "editor.formatOnSave": true,
  "editor.detectIndentation": true,
  // "editor.cursorSmoothCaretAnimation": true,
  "editor.lineHeight": 24,
  // "editor.formatOnPaste": true,
  "workbench.iconTheme": "vs-nomo-dark",
  "workbench.startupEditor": "newUntitledFile",
  "search.location": "panel",
  "workbench.activityBar.visible": true,
  "workbench.colorTheme": "Monokai",
  "search.showLineNumbers": true,
  "workbench.tree.indent": 15,
  "update.showReleaseNotes": false,
  "telemetry.enableCrashReporter": false,
  "telemetry.enableTelemetry": false,
  "eslint.autoFixOnSave": true,
  "php.suggest.basic": false,
  // 添加 vue 支持
  "eslint.validate": [
    "javascript",
    "javascriptreact",
    "html",
    {
      "language": "vue",
      "autoFix": true
    }
  ],
  "eslint.options": {
    "extensions": [
      ".js",
      ".jsx",
      ".vue"
    ]
  },
  "emmet.includeLanguages": {
    "wxml": "html",
    "vue-html": "html"
  },
  "javascript.format.insertSpaceBeforeFunctionParenthesis": true,
  // #這個按用戶自身習慣選擇
  "vetur.format.defaultFormatter.html": "js-beautify-html",
  // #讓vue中的js按編輯器自帶的ts格式進行格式化
  // "vetur.format.defaultFormatter.js": "vscode-typescript",
  "vetur.validation.template": false,
  "vetur.format.defaultFormatterOptions": {
    "prettier": {
      "semi": false,
      "singleQuote": true,
      "tabWidth": 4
    },
    // "prettyhtml": {
    //   "printWidth": 280,
    //   "singleQuote": false,
    //   "wrapAttributes": true,
    //   "sortAttributes": true
    // }
    "js-beautify-html": {
      "wrap_attributes": "auto",
      "end_with_newline": false
    }
  },
  // prettier:每行在這個字符數內整合代碼,如果你的屏幕較寬分辨率較高可以適當加大
  "prettier.printWidth": 120,
  // prettier:是否在每行末尾加上分號
  "prettier.semi": false,
  // prettier:如果為true,將使用單行否則使用雙引號
  "prettier.singleQuote": true,
  "prettier.tabWidth": 4,
  // "vetur.format.defaultFormatter.html": "prettier",
  "terminal.integrated.shell.windows": "C:\\Program Files\\Git\\bin\\bash.exe",
  "terminal.integrated.rendererType": "canvas", // 兩個選擇器中是否換行
  "workbench.sideBar.location": "right",
  // "less.compile": {
  //   "compress": true,
  //   "out": "./",
  //   "autoprefixer": "> 5%; last 2 Chrome versions; not ie 6-9"
  // },
  "editor.quickSuggestions": {
    "strings": true
  },
  "php-docblocker.author": {
    "name": "NullEcho",
    "email": "82612931@qq.com"
  },
  "php-docblocker.useShortNames": true,
  "php-docblocker.qualifyClassNames": true,
  "editor.wordWrap": "on",
  "terminal.integrated.rightClickBehavior": "default",
  "php.validate.executablePath": "D:\\programs\\phpstudy\\PHPTutorial\\php\\php-7.2.1-nts\\php.exe",
  "[json]": {
    "editor.defaultFormatter": "vscode.json-language-features"
  },
  "files.associations": {
    "*.log": "log",
    "*.conf": "json"
  },
  "intelephense.licenceKey": "452463546",
  "python.linting.flake8Enabled": true,
  "python.formatting.provider": "autopep8",
  "python.formatting.autopep8Args": [
    "--max-line-length=220",
  ],
  "python.linting.flake8Args": [
    "--max-line-length=120",
    "--ignore=E501, E262",
  ],
  "editor.suggestSelection": "first",
  "vsintellicode.modify.editor.suggestSelection": "automaticallyOverrodeDefaultValue",
  "files.exclude": {
    "**/.classpath": true,
    "**/.project": true,
    "**/.settings": true,
    "**/.factorypath": true
  },
  "java.home": "D:\\programs\\jdk8",
  "java.dependency.packagePresentation": "hierarchical",
  "maven.executable.path": "D:\\programs\\maven-3.6.2\\bin\\mvn.cmd",
  "java.configuration.maven.userSettings": "D:\\programs\\maven-3.6.2\\conf\\settings.xml",
  "maven.terminal.customEnv": [
    {
      "environmentVariable": "JAVA_HOME",
      "value": "D:\\programs\\jdk8"
    }
  ],
  "java.dependency.syncWithFolderExplorer": false,
  "window.zoomLevel": 0,
  // "maven.executable.path": "/usr/local/bin/apache-maven-3.5.4/bin/mvn",       ###必需
  // "java.configuration.maven.userSettings": "/usr/local/bin/apache-maven-3.5.4/conf/settings.xml",       ###必需
  // "java.jdt.ls.vmargs": "-noverify -Xmx1G -XX:+UseG1GC -XX:+UseStringDeduplication",
  // "explorer.confirmDelete": false
}

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM