The EditorConfig extension supports this feature as well. Please take a look at EditorConfig if you want the same behaviour across multiple editors.
Press F1 and narrow down the list commands by typing
Simply pick the
Enable the newline insertion when saving the document in the VSCode Settings.
MIT © Sam Verschueren