Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/simonguo/vscode-markdown-table-sort
Visual Studio Code extension to sort markdown tables
https://github.com/simonguo/vscode-markdown-table-sort
table table-sorting vscode vscode-extension
Last synced: about 16 hours ago
JSON representation
Visual Studio Code extension to sort markdown tables
- Host: GitHub
- URL: https://github.com/simonguo/vscode-markdown-table-sort
- Owner: simonguo
- License: mit
- Created: 2018-11-04T15:32:13.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-02-02T10:54:53.000Z (about 1 year ago)
- Last Synced: 2025-02-03T10:51:07.717Z (16 days ago)
- Topics: table, table-sorting, vscode, vscode-extension
- Language: TypeScript
- Homepage: https://marketplace.visualstudio.com/items?itemName=simonguo.vscode-markdown-table-sort
- Size: 281 KB
- Stars: 12
- Watchers: 3
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
README
# [Markdown Table Sort](https://marketplace.visualstudio.com/items?itemName=simonguo.vscode-markdown-table-sort)
Markdown table prettier extension for Visual Studio Code.
## Features
- 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 |
```## Configuration
Edit your user or workspace settings to configure the extension.
```json
// 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` or `desc`. (default: `asc`)
- `markdownTableSortPrettier.sortColumn` - Sort column, `0` or `1` or `2`... (default: `0`)
- `markdownTableSortPrettier.ignoreCharacters` - Ignore characters. (default: `['~',' ']`)## Referenced
- https://github.com/prettier/prettier
- https://github.com/TomasHubelbauer/vscode-markdown-table-format