csv-to-array is a Visual Studio Code extension that converts CSV files into ready-to-use C# arrays.
It displays your CSV in an interactive spreadsheet-like editor, lets you modify the data, and generates valid C# code for 2D matrices or 1D vectors that you can paste directly into your project.
This project has the objective to convert a csv file (automaton representation) to data type.
Features
📂 Open CSV in an editable grid
Load any .csv file into a clean interactive table inside VS Code.
Add or delete rows and columns.
Edit cell values in real-time.
🔢 Generate C# arrays
Convert your CSV into:
A 2D multidimensional array (T[,])
A 1D vector (T[])
Output is already formatted and ready to paste.
🧾 Header handling
Ignore first row as header (optional)
Ignore first column as header (optional)
📋 Copy to clipboard
One-click button to copy the generated C# code.
🧮 Numeric-friendly
Designed primarily for numeric matrix datasets.
String values are automatically wrapped in quotes.