if you have trouble with the indentation either because of copying and pasting text or you are just not sure what the “standard” way of indentation is you can press alt + shift + f to make visual studio code do the correct indentation for you.
I personally use this a lot, might be worth writing this shortcut down.
(in visual studio community it is ctrl + k and then ctrl + d )