When coding in Visual Studio Code you may find yourself trying to format your code manually by using a combination of keyboard keys like Command + Shift + C, enter, and delete.
Thankfully there is a way to automatically format your code with the Prettier extension. With Prettier you can either format with a shortcut (Shift Option F on Mac) or set up automatic format on every file save.
Now on every save of your file you will see Prettier go into affect. You’ll also know that Prettier is correctly installed if you see it in the bottom right corner of the status bar.
No fluff. Just real projects, real value, and the path from code to cash — one useful build at a time.