Inserts a final newline when saving the document.
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 extension
. Pick Extensions: Install Extension
.
Simply pick the final-newline
extension from the list
Enable the newline insertion when saving the document in the VSCode Settings.
{
"files.insertFinalNewline": true
}
MIT © Sam Verschueren