VSCode配置

2019-02-20 11:45:27

1、扩展

beautify

eslint

tslint

vetur

phpfmt

Settings Sync(https://www.jianshu.com/p/cfd7dbb5565d  c05f1022c20d8921841465c53f66ed893e1d50a7 )

 

2、用户配置

 

// 将设置放入此文件中以覆盖默认设置

{

  "editor.detectIndentation": true,

  "editor.formatOnType": false,

  "editor.formatOnSave": false,

  "editor.insertSpaces": false,

  "editor.renderIndentGuides": true,

  "editor.tabSize": 2,

  "editor.wordWrap": "on",

  "editor.renderWhitespace": "all",

  "files.associations": {

    "*.phtml": "html",

    "*.wpy": "vue"

  },

  "html.format.enable": false,

  "html.format.wrapLineLength": 0,

  "php.validate.enable": false,

  "vetur.format.defaultFormatter.js": "vscode-typescript",

  "vetur.format.defaultFormatter.html": "js-beautify-html",

  "workbench.colorTheme": "Visual Studio Dark",

  "workbench.statusBar.visible": true,

}