Skip to content
This repository has been archived by the owner on Nov 10, 2017. It is now read-only.

mnghsn/vscode-ensure-single-final-newline

Repository files navigation

Ensure Single Final Newline for VS Code

Build Status Build status


⚠ 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.

Features

This extension removes extra newlines at the end of the file but keeps only one when you save the file.

Screenshot

Installation

Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.

ext install vscode-ensure-single-final-newline

Extension Settings

Enable or disable by setting files.ensureSingleFinalNewline in VS Code configuration.

{
  "files.ensureSingleFinalNewline": true
}

License

Licensed under the MIT License.