The code formatting is available in VS Code through the following shortcuts:
On Windows Shift + Alt + F
On Mac Shift + Option + F
On Ubuntu Ctrl + Shift + I
Alternatively, you can find the shortcut, as well as other shortcuts, through the search functionality provided in the editor with Ctrl +Shift+ P (or Command + Shift + P on Mac), and then searching for format code.
https://aka.ms/codeit VS Code
https://aka.ms/jp-free Free Azure trial
https://aka.ms/vsc-node Node Extensions
https://aka.ms/ng-essentials Angular Essentials
https://aka.ms/jp-codeext Extension Marketplace
https://aka.ms/jp-code-mackeys Keyboard Shortcuts for macos
https://aka.ms/jp-code-winkeys Keyboard shortcuts for Windows