Here's how to set up Prettier to reformat your files on save.
First install the plugin by clicking the link at https://github.com/prettier/prettier-vscode. If VSC is installed, it'll handle the link and open the plugin page in VSC.
Once installed, open VSC's settings page, and enable reformatting