Skip to content

ChrisBarnes2000-VSCodeChrome-Extensions/vscode-markdown-table-formatter

 
 

Repository files navigation

Markdown table formatter

Installs Downloads Rating

A (not so) simple markdown plugin to format tables and other table related features.

Changelog

Features

  • Format markdown tables
  • Sort tables
  • Organize columns moving it left/right

Usage

Uses VSCode Format Document and Format Selection

Settings & Keybindings

  • 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;
  • limitLastColumnWidth: Do not extend last column to more than your editor's wordWrapColumn setting;
  • telemetry: Send usage statistics.

Tips

Enable Markdown Table Formatter for the current file type

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

Thanks all users for the awesome community that was built here. I never imagined that this extension would be used by more than installs users with installs downloads.

Thanks for the support, bug reports and PRs!

Donating

If you like this extension, please consider donating and/or take a moment to write a review and share on Facebook or Twitter

About

A (not so) simple Visual Studio Code markdown plugin to format tables and some other features.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 95.1%
  • Python 2.2%
  • JavaScript 1.9%
  • Other 0.8%