Since you are using VSCode to edit files you could make a .editorconfig file with your formatting conventions. Most text editor respect it (VSCode, vim, etc.)
https://editorconfig.org/