This extension ensures that all files end in a new line when you save them
When you save any file, this will add a new line to the end of the file, if there isn't one present. You can set the preferred
line ending in the config option editor.lineEnding
in your User Settings or Workspace Settings. Default is \n
.
This extension contributes the following settings:
editor.lineEnding
: (string) - default"\n"
- the line ending to use when adding to the end of your files
There is currently no way to whitelist or blacklist file types. This is planned for a future release.