janisdd / vscode-edit-csv

vs code extension to edit csv files with an excel like table ui

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add newline at the end of file

qdu-eelab opened this issue · comments

Version?

  • vs code plugin

Feature

  • Add option to control whether add newline at the end of file
  • Enable (Always keep one newline)
  • Disable (Always keep no newline)
  • Auto (Detect from origin file)

Di you mean the option files.insertFinalNewline? This comes from vs code itself.

I mean if there is newline at the end of origin file, after edit and save by "edit-csv", final newline will lost.

Well, Enable (Always keep one newline) and Disable (Always keep no newline) can be achieved by the files.insertFinalNewline setting.

Why do you need Auto (Detect from origin file)?

There is now a new setting finalNewLine that can control that... defaults to sameAsSourceFile