Quick VS Code Tip – Format on Save

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:

  1. File
  2. Preferences
  3. Settings
  4. Search for formatOnSave and check the box

formatOnSave

 

That’s it, hope it helps!

One thought on “Quick VS Code Tip – Format on Save

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s