In Visual Studio Code, how do you automatically format your source code when the file is saved?
Below are the steps to change the VS Code auto format on save settings:
There are also Keyboard Shortcuts for formatting in VS Code. For instance, the default to format selected code should be [Ctrl]+K [Ctrl]+F (type both hotkeys in succession).
Below are the steps to change the auto format hotkey settings: