Rather than Formatting your code using Shift + Alt + F
on Windows or Shift + Option + F
on Mac, consider just formatting on save instead.
To turn this on go to:
- File
- Preferences
- Settings
- Search for formatOnSave and check the box
That’s it, hope it helps!
[…] In my last post, I mentioned a tip to using the Format on Save option in VS Code. I’d like to take that one step further and mention how you can combine that with the Prettier – Javascript Formatter plugin for VS Code to make a really nice editing experiencee. […]