1.首先file->Preferences->Settings,进入配置页面

VSCode设置自动格式化代码

2.选择Text Editor->Formatting

VSCode设置自动格式化代码

勾选format on save,则写代码时,保存操作后,会自动进行代码格式化

VSCode设置自动格式化代码

 

相关文章:

  • 2022-12-23
  • 2021-06-01
  • 2021-10-31
  • 2021-09-30
  • 2022-12-23
  • 2021-10-20
  • 2021-10-24
猜你喜欢
  • 2021-06-03
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-17
  • 2022-12-23
  • 2021-09-14
相关资源
相似解决方案