1.安装 Prettier插件 Prettier - Code formatter

2.在setting.json配置里

"prettier.useEditorConfig": false,  
"prettier.semi": true,  // 是否带分号
"prettier.singleQuote": true  // 是否为单引号

3.使用vscode自带格式化

Alt + Shift + F

相关文章:

  • 2021-12-17
  • 2022-01-02
  • 2021-11-16
  • 2021-09-18
  • 2022-12-23
  • 2022-12-23
  • 2021-07-29
  • 2022-12-23
猜你喜欢
  • 2022-01-07
  • 2022-03-09
  • 2021-08-21
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案