Collapse blocks of code on separate lines

Would like for if and if else statements to be automatically put onto separate lines when collapsed
image
I find the currently way they are collapsed a little messy

image
slightly off topic but if I screenshot a little to the left lol

Should be placed where the close bracket is, not the open one