vscode 的格式化处理器

setting.json

"editor.defaultFormatter": "esbenp.prettier-vscode",

.prettierrc

{
  "printWidth": 100,
  "arrowParens": "always",
  "singleQuote": true,
  "semi": false,
  "trailingComma": "all"
}
Comments
Write a Comment