Turning on ‘Format on save’
I’d forgotten about this
Got to settings
Turn on ‘Editor: Format on save’
….and set ‘Editor: Format on save mode’ to ‘file’
It works nicely with the Powershell extension installed - I haven’t tried it with anything else I don’t think