There are various coding patterns that you can use that will change the formatting of your code to the specified specifications. But even without a special template, the default template adds a space, you just need to automatically format your code.
On Windows : Ctrl + Shift + F
On Mac : ⌘ + ⇧ + F
It will format your code and automatically add a space.
source share