If you put everything on one line, the default formatting options will leave it alone:
public string MyProperty { get; set; }
This is controlled by:
Options> Text editor> C #> Formatting> Wrapper> Leave the block in one line
If you really want to format it in your own way, you can disable:
Options> Text editor> C #> Formatting> General> Automatically format the completed block}
But you probably want to disable Automatically format the insert .
source share