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!
