VS Code keyboard shortcut
Press Shift + Alt + F to format document.
Practice this shortcut All VS Code shortcuts