Closed hammerandpick closed 7 months ago
Workaround: After modifying data use VisualStudio Code's replace function with RegEx enabled.
"(-?\d+,?\d*)"
in search field. $1
in replace field.Well, this actually has nothing to do with number formats. In fact, the number format is only intended for the "number sum" and is not used for other formatting.
The "problem" here is that the first line is in quotes. Currently, the extension only stores the quote information column by column and uses the first row to determine if the cells in a column should be quoted. If you remove the quotation marks in the first row, it works as expected.
You can prevent the extension from using the first row for quote information by setting csv-edit.retainQuoteInformation
to false.
However, this will not use quotation mark information from the original file. In your case, the quotation marks will be removed from the first line if they are not needed.
This would only be possible if the quote information was stored for each field. This increases memory and raises a lot of questions when the shape of the table is changed (add/delete operations). There are currently no plans to support this.
What OS?
Description
When using a file with non-en number formats, these numbers are excaped during saving the file. This is not expected an should be handled when non-en Numbers are used in the file.
Upon loading of file there it is performed well.
Numbers may be edited, no negative behaviour may be seen in this step.
After applying changes to file or saving file these non-en number formats are escaped.
Quote all fields was turned of. Presetting number formats in configuration hat no effect on this. All numbers are shown corretly when in edit mode.
Expected behavior
non-en number formats should be handled correctly. When detecting other delimiters it should be possible to prevent converting numbers to escaped strings.
Steps to reproduce