The code formatting is available in Visual Studio Code through the following shortcuts:
- On Windows
- On Mac
- On Linux
Alternatively, you can find the shortcut, as well as other shortcuts, through the 'Command Palette' provided in the editor with
P on Mac), and then searching for format document.