A simple markdown plugin to format tables.
Based on the awesome Improved Markdown table commands for TextMate work from Dr. Drang (@drdrang)
Uses VSCode Format Document
and Format Selection
- 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;
- markdownGrammarScopes: File language grammar that will be considered Markdown by this package (comma-separated).
- limitLastColumnPadding: Do not pad the last column to more than your editor's preferredLineLength setting.;
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.
If you like this extension, please consider donate and/or take a moment to write a review and share on Facebook or Twitter