Visual Studio Code可以通过以下快捷键 格式化代码:

  • On Windows:Shift + Alt + F
  • On Mac:Shift + Option + F
  • On Ubuntu:Ctrl + Shift + I