Easily create Markdown tables of already structured text
Features
Create a table reading rows first
- Select your table data (each new line is one cell in the table corresponding left to right / rows)
- Use
Ctrl+Shift+P to bring up the Command Palette
- Type
Markdown create table and confirm
- Enter the number of columns, confirm
- You should see your formatted table

Create a table reading columns first
- Select your table data (each new line is one cell in the table corresponding top to bottom / columns)
- Use
Ctrl+Shift+P to bring up the Command Palette
- Type
Markdown: create table and confirm
- Enter the number of columns, confirm
- You should see your formatted table

Concatenate tables
- Select your tables separated by LineFeeds
- Use
Ctrl+Shift+P to bring up the Command Palette
- Type
Markdown: concatenate tables and confirm
- You should see your tables merged into one

Concatenate tables in reverse order
- Select your tables separated by LineFeeds
- Use
Ctrl+Shift+P to bring up the Command Palette
- Type
Markdown: concatenate tables in reverse order and confirm
- You should see your tables merged into one, but in reversed order

Transpose table
- Select your table
- Use
Ctrl+Shift+P to bring up the Command Palette
- Type
Markdown: transpose table and confirm
- You should see your tables transposed (columns are now rows and rows are now columns)

To Lines (Reverse Table)
- Select your formatted markdown table
- Use
Ctrl+Shift+P to bring up the Command Palette
- Type
Markdown: to lines (reverse table) and confirm
- You should see your table converted back to cell-first format (one cell per line, reading rows first)

To Columns (Column-Major Reverse)
- Select your formatted markdown table
- Use
Ctrl+Shift+P to bring up the Command Palette
- Type
Markdown: to columns (reverse of create, column-major) and confirm
- You should see your table converted back to cell-first format (one cell per line, reading columns first)

Local development
Prerequisites
Commands
Install needed packages
yarn install
Run tests
yarn run test
For ui-tests and taking screenshots
yarn run ui-test
If there are missing webp animations after new functions. Adjust check_and_create_images.sh images and run
bash check_and_create_images.sh
Press F5 to open a new window with the extension loaded and all others disabled.
To generate Changelog
git-cliff -o CHANGELOG.md
prepublish
Generate vsix for upload
vsce package
Requirements
Make sure vsce is installed.
For nixos this use the provided flake with direnv or run
nix develop
Inspect extension size
vsce ls --tree
Known Issues
- Error management could be improved.
- If you want empty table cells during
create table, you should use a special string and replace it afterwards.
- Only
:--- is supported at the moment
- Linefeed is
\n at the moment, no \r\n support.
Contribute
Have a look at Known Issues or raise your own.
This is my first public open source project, so I appreciate hints and help!
| |