shuGH / vscode-table-formatter

Table formatter extension for VSCode.
MIT License
49 stars 12 forks source link

[RST] Formatting table from a basic non-formatted syntax #23

Closed PapsOu closed 3 years ago

PapsOu commented 6 years ago

Hello.

Thanks for your extension, it's a very useful one. I'll probably uninstall definitively Atom because extension like yours was missing on VSCode.

I have just one feature request / suggestion about the table formatting.

Regarding this Atom extension (https://atom.io/packages/rst-snippets) converting a RST table from a basic formatted table would be very handy.

E.G : (using double spaces as column separator and new line as line separator)

First Column  Second Column  XColumn
firstline of table  second line with a long content  Xcol with something
lastline of table  second col of lastline with a long content  Xcol of lastline with something

Would be formatted as

+--------------------+--------------------------------------------+---------------------------------+
| First Column       | Second Column                              | XColumn                         |
+====================+============================================+=================================+
| firstline of table | second line with a long content            | Xcol with something             |
+--------------------+--------------------------------------------+---------------------------------+
| lastline of table  | second col of lastline with a long content | Xcol of lastline with something |
+--------------------+--------------------------------------------+---------------------------------+

Do you think it would be possible to add this very useful feature ?