1 vscode里面:// prettier 配置路径
2 "prettier.configPath": "C:\\Users\\xxxx\\.prettierrc",
3 "eslint.alwaysShowStatus": true,
4 "prettier.trailingComma": "none",
5 "prettier.semi": false,
6 // 每行文字个数超出此限制将会被迫换行
7 "prettier.printWidth": 300,
8 // 使用单引号替换双引号
9 "prettier.singleQuote": true,
10 "prettier.arrowParens": "avoid",
11 // 设置 .vue 文件中,HTML代码的格式化插件
12 "vetur.format.defaultFormatter.html": "js-beautify-html",
13 "vetur.ignoreProjectWarning": true,
14 "vetur.format.defaultFormatterOptions": {
15 "js-beautify-html": {
16 "wrap_attributes": false
17 },
18 "prettier": {
19 "printWidth": 300,
20 "trailingComma": "none",
21 "semi": false,
22 "singleQuote": true,
23 "arrowParens": "avoid"
24 }
25 },