janisdd / vscode-edit-csv

vs code extension to edit csv files with an excel like table ui
MIT License
211 stars 30 forks source link

Add newline at the end of file #115

Closed qdu-eelab closed 1 year ago

qdu-eelab commented 1 year ago

Version?

Feature

janisdd commented 1 year ago

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

qdu-eelab commented 1 year ago

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

janisdd commented 1 year ago

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)?

janisdd commented 1 year ago

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