Skip to content

phoihos/vscode-csv-to-md-table

Repository files navigation

CSV to Markdown Table

Convert CSV/TSV/PSV text to GitHub Flavored Markdown table.

Features

  • Auto-detect text type
    • CSV: Comma-separated (or Semicolon-separated) values text
    • TSV: Tab-separated values text
    • PSV: Pipe-separated values text
  • GitHub Flavored Markdown table formatting
    • Table formatting supports CJK (Chinese/Japanese/Korean) characters
  • Multi selection support
  • Paste as Markdown table from the clipboard
  • Convert Markdown table to CSV

Installation

To install this extension go to View->Extensions and search for csv-to-md-table. Next click Install and then Reload.

Usage

To use the extension go to the Command Palette (Cmd+Shift+P on macOS or Ctrl+Shift+P on Windows) and launch Convert CSV to Markdown table command.

Demo 1

You can paste as Markdown table from the clipboard by launch with Paste CSV as Markdown table command on the Command Palette.

Demo 2

And you can convert Markdown table to CSV by launch with Convert Markdown table to CSV command on the Command Palette.

This command use , (comma) delimiter by default.
Use Convert Markdown table to CSV with Delimiter... command, if you want to use other delimiter.

Demo 3

Settings

Table of contributed settings (prefix "csvToMdTable."):

Name Default Description
numberAlignRight false Controls whether the cells with numbers align to the right when convert to Markdown table

Issues

If you find any problems using this extension or you want to propose new features to it, feel free to open an issue on Github.

Release Notes

Detailed Release Notes are available here or above Changelog tab.

Attributions

Icon made by Smashicons from www.flaticon.com