A table formatter for gherkin data tables.
- Run on document without selection to find and align all tables.
- Select a section of text to align tables within that selection.
Given a Gherkin style table, you can turn this:
Given the following users exist:
| name | birthplace | age |
| Jonathan | Stockholm | 24 |
| Luke | London | 8 |
| Jamie | Melbourne | 50 |
Given the following administrators exist:
| name | birthplace | identification |
| Sean | Glasgow | 0001 |
| Glenn | Dublin | 0002 |
| Ian | Amsterdam | 0003 |
| Bonnie | Budapest | 0004 |
into this:
Given the following users exist:
| name | birthplace | age |
| Jonathan | Stockholm | 24 |
| Luke | London | 8 |
| Jamie | Melbourne | 50 |
Given the following administrators exist:
| name | birthplace | identification |
| Sean | Glasgow | 0001 |
| Glenn | Dublin | 0002 |
| Ian | Amsterdam | 0003 |
| Bonnie | Budapest | 0004 |
Run from the command palette by searching Gherkin Table Align
, or set your own shortcut in File > Preferences > Keyboard Shortcuts.
- Expects table rows to be on their own line. Will not format correctly if any text exists before the first "|".
- Added option "Allow empty rows in tables."
- Updated dependencies.
- Updated readme.
- Each table is now aligned separately.
- Format all tables on document if nothing is selected.
- Format table, even if selection includes non-table lines.
- New icon.
- Naming update.
- Readme.
- Keep line indentation before the first "|".
- Initial release