/vscode-final-newline

Inserts a final newline when saving the document.

Primary LanguageTypeScriptMIT LicenseMIT

vscode-final-newline Unix Build Status

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.

Install

Press F1 and narrow down the list commands by typing extension. Pick Extensions: Install Extension.

Simply pick the final-newline extension from the list

Usage

Enable the newline insertion when saving the document in the VSCode Settings.

{
  "files.insertFinalNewline": true
}

License

MIT © Sam Verschueren