Markdown table prettier extension for Visual Studio Code.
- Support for formatting tables in documents.
- Support table sorting, according to the first column of content.
Eg.
| name | email | description |
| ------ | ------------ | ----------- |
| amity | [email protected] | amity |
| batman | [email protected] | batman |
| li | [email protected] | li |
| wang | [email protected] | wang |
| zhang | [email protected] | zhang |
Formated:
| name | email | description |
| ------ | ------------ | ----------- |
| amity | [email protected] | amity |
| batman | [email protected] | batman |
| li | [email protected] | li |
| wang | [email protected] | wang |
| zhang | [email protected] | zhang |
Edit your user or workspace settings to configure the extension.
// settings.json
{
"markdownTableSortPrettier.enable": true,
"markdownTableSortPrettier.sortOrder": "asc",
"markdownTableSortPrettier.sortColumn": 0,
"markdownTableSortPrettier.ignoreCharacters": ["~", " "]
}
markdownTableSortPrettier.enable
- Enable/disable markdown table sort. (default:true
)markdownTableSortPrettier.sortOrder
- Sort order,asc
ordesc
. (default:asc
)markdownTableSortPrettier.sortColumn
- Sort column,0
or1
or2
... (default:0
)markdownTableSortPrettier.ignoreCharacters
- Ignore characters. (default:['~',' ']
)