Strange autoformatting with vscode

This might be me being an idiot, but why would the the vscode extention insist on formatting this code block as it is?

image

The structs defined above and below are formatted correctly.

1 Like

I’ve had that too, couldn’t work out why!

1 Like

For whomever is debugging this…

image

image

image

image

Is this the default indentation when writing code or when actual formatting takes place?

It is when the formatting takes place

Ok. We will switch to a different formatter very soon, which should fix this issue (and a bunch more). I’d recommend not using the integrated formatter for now.

3 Likes