Search for and select Beautify:
Now, select CTRL + SHIFT + P or the View menu to bring up the Command Palette:
Search for Beautify and you will see:
- Beautify File
- Beautify Selection
On selecting this, our code is now beautified, with the function being displayed across multiple lines:
You can also configure this to run automatically when saving a file. To do this, go to File->Preferences->Settings:
Under Text Editor, select Format On Save.
Now when saving a file, it will be beautified.