A (not so) simple markdown plugin to format tables and other table related features.
- Format markdown tables
- Sort tables
- Organize columns moving it left/right
Uses VSCode Format Document
and Format Selection
- enable: Enable or disable the formatter;
- enableSort: Enable or disable table sorter;
- spacePadding: How many spaces between left and right of each column content;
- keepFirstAndLastPipes: Keep first and last pipes "|" in table formatting. Tables are easier to format when pipes are kept;
- defaultTableJustification: Defines the default justification for tables that have only "-" on the formatting line;
- removeColonsIfSameAsDefault: Remove colons from the format line if the justification is the same as default;
- globalColumnSizes: Format tables locally, with same column sizes or same table size;
- delimiterRowPadding: Calculates the column sizes based on all tables on the document;
- limitLastColumnLength: Control how the last column size is calculated;
- sortCaseInsensitive: Sort table columns without considering text case;
- allowEmptyLines: Format tables even if lines have less columns than header;
- markdownGrammarScopes: File language grammar that will be considered Markdown by this package;
- whichCodeLensesToShow: Control what is shown on CodeLens;
To enable Markdown Table Formatter for your current file type: put your cursor in the file, open the Command Palette ^ (CONTROL)+⇧ (SHIFT)+P (⌘ (CMD)+⇧ (SHIFT)+P for mac), and run the Markdown Table Formatter: Enable for current language
command. This will add language grammar from current editor to the list of languages in the settings for the Markdown Table Formatter package. You can edit this setting manually later if you want to.
Thanks all users for the awesome community that was built here. I never imagined that this extension would be used by more than users with downloads.
Thanks for the support, bug reports and PRs!
If you like this extension, please consider donating and/or take a moment to write a review and share on Facebook or Twitter