vscode settings.json 文件的配置

  • Post author:
  • Post category:其他


{

// 开启编辑器的保存自动格式化功能

“editor.formatOnSave”: true,

// ESLint 插件的配置

“editor.codeActionsOnSave”: {

“source.fixAll”: true,

},

“prettier.configPath”: “C:\\Users\\86155\\.prettierrc”,

“eslint.alwaysShowStatus”: true,

“prettier.trailingComma”: “none”,

“prettier.semi”: false,

// 每行文字个数超出此限制将会被迫换行

“prettier.printWidth”: 300,

// 使用单引号替换双引号

“prettier.singleQuote”: true,

“prettier.arrowParens”: “avoid”,

// 设置 .vue 文件中,HTML代码的格式化插件

“vetur.format.defaultFormatter.html”: “js-beautify-html”,

“vetur.ignoreProjectWarning”: true,

“vetur.format.defaultFormatterOptions”: {

“js-beautify-html”: {

“wrap_attributes”: false

},

“prettier”: {

“printWidth”: 300,

“trailingComma”: “none”,

“semi”: false,

“singleQuote”: true,

“arrowParens”: “avoid”

}

},

“window.zoomLevel”: 1,

“[vue]”: {

“editor.defaultFormatter”: “octref.vetur”

},

“[javascript]”: {

“editor.defaultFormatter”: “vscode.typescript-language-features”

},

“[html]”: {

“editor.defaultFormatter”: “vscode.html-language-features”

}

}



版权声明:本文为q1152345713原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。