⚠ DEPRECATED
This extension is deprecated because VS Code 1.17.0+ has files.trimFinalNewlines
settings making this extension obsolete. You don't need this extension any more.
As such, this extension will not receive further updates.
This is a Visual Studio Code extension that ensures all files end with a single new line.
This extension removes extra newlines at the end of the file but keeps only one when you save the file.
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
ext install vscode-ensure-single-final-newline
Enable or disable by setting files.ensureSingleFinalNewline
in VS Code configuration.
{
"files.ensureSingleFinalNewline": true
}
Licensed under the MIT License.