List to Markdown Table Converter
A VS Code extension that converts various list formats into well-formatted Markdown tables with a single command.

Features
- Convert bullet lists (
-
, *
, +
) to Markdown tables
- Convert numbered lists (
1.
, 2)
, etc.) to Markdown tables
- Convert delimited text (comma, tab, semicolon, or pipe-separated) to Markdown tables
- Automatically detect or customize table headers
- Preserve Markdown links in table cells, even when they contain pipe characters
- Keyboard shortcuts for quick conversion
Usage
- Select the list text you want to convert
- Use one of the following methods:
- Press
Ctrl+Alt+T
(Cmd+Alt+T
on Mac) to convert with header options
- Press
Ctrl+Alt+D
(Cmd+Alt+D
on Mac) to convert with default headers
- Open the Command Palette (
Ctrl+Shift+P
or Cmd+Shift+P
) and type "Convert List to Markdown Table"
- Right-click and select "Convert List to Markdown Table" from the context menu
When using the Ctrl+Alt+T
shortcut or the command palette, you'll be presented with three options:
- Auto-detect headers: Uses the first row of your list as the table headers
- Use custom headers: Prompts you to enter comma-separated custom headers
- Use default headers: Uses generic headers (Column 1, Column 2, etc.)
Bullet Lists
- Item 1, Value 1, Note 1
- Item 2, Value 2, Note 2
- Item 3, Value 3, Note 3
Numbered Lists
1. Item 1, Value 1, Note 1
2. Item 2, Value 2, Note 2
3. Item 3, Value 3, Note 3
Comma-Separated Values
Item 1, Value 1, Note 1
Item 2, Value 2, Note 2
Item 3, Value 3, Note 3
Tab-Separated Values
Item 1 Value 1 Note 1
Item 2 Value 2 Note 2
Item 3 Value 3 Note 3
Semicolon-Separated Values
Item 1; Value 1; Note 1
Item 2; Value 2; Note 2
Item 3; Value 3; Note 3
Pipe-Separated Values
Item 1 | Value 1 | Note 1
Item 2 | Value 2 | Note 2
Item 3 | Value 3 | Note 3
Example Conversions
- Apple, Red, Sweet
- Banana, Yellow, Sweet
- Lime, Green, Sour
Output (Markdown Table)
| Column 1 | Column 2 | Column 3 |
| --- | --- | --- |
| Apple | Red | Sweet |
| Banana | Yellow | Sweet |
| Lime | Green | Sour |
Rendered Output
Column 1 |
Column 2 |
Column 3 |
Apple |
Red |
Sweet |
Banana |
Yellow |
Sweet |
Lime |
Green |
Sour |
Special Features
Markdown Link Preservation
The extension properly handles Markdown links in your lists, even when they contain pipe characters:
- [Link with | pipe](https://example.com), Description
- [Regular link](https://example.com), Description
Will be converted to:
| Column 1 | Column 2 |
| --- | --- |
| [Link with \| pipe](https://example.com) | Description |
| [Regular link](https://example.com) | Description |
Requirements
Extension Settings
This extension doesn't add any VS Code settings.
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
License
This extension is licensed under the MIT License.