Giter Site home page Giter Site logo

fcrespo82 / vscode-markdown-table-formatter Goto Github PK

View Code? Open in Web Editor NEW
26.0 3.0 8.0 1.35 MB

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

Home Page: https://marketplace.visualstudio.com/items?itemName=fcrespo82.markdown-table-formatter

License: GNU General Public License v3.0

TypeScript 97.26% JavaScript 0.46% Python 2.22% PowerShell 0.06%
vscode vscode-extension openvsx open-vsx markdown formatter visual-studio-code visual-studio-code-extension hacktoberfest

vscode-markdown-table-formatter's Introduction

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

  • 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;

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.