You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+7-5Lines changed: 7 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,7 @@ Makes tables more readable for humans. Compatible with the Markdown writer plugi
11
11
- Save space by not right-padding the last column if the table has no border.
12
12
- Support empty columns inside tables.
13
13
- Support column alignment options with ":".
14
-
- CLI support to format files.
14
+
- CLI support to prettify files.
15
15
16
16

17
17
@@ -20,7 +20,7 @@ Makes tables more readable for humans. Compatible with the Markdown writer plugi
20
20
Formatting files or checking if they're already formatted is possible from the command line. This requires `node` and `npm`.
21
21
22
22
The extension has to be downloaded and compiled:
23
-
-Download the extension from git or locate your VSCode installed extension path.
23
+
-Locate your VSCode installed extension path or download the extension from Github.
24
24
- Go to the extension directory.
25
25
- Run `npm install`.
26
26
- Run `npm run compile`.
@@ -31,18 +31,20 @@ The tipical location of the installed extension (your actual version might diffe
31
31
- Linux ~/.vscode/extensions/darkriszty.markdown-table-prettify-3.0.0
32
32
33
33
Available features from the command line:
34
-
- To format a file: `npm run --silent prettify-md < input.md`.
35
-
- To format a file and save the output: `npm run --silent prettify-md < input.md > output.md`.
34
+
- To prettify a file: `npm run --silent prettify-md < input.md`.
35
+
- To prettify a file and save the output: `npm run --silent prettify-md < input.md > output.md`.
36
36
- To check whether a file is prettyfied or not: `npm run --silent check-md < input.md`. This will fail with an exception and return code `1` if the file is not prettyfied.
37
37
38
38
> Note: the `--silent` switch sets the npm log level to silent, which is useful to hide the executed file name and concentrate on the actual output.
39
39
40
40
## Extension Settings
41
41
42
-
The extension is available for markdown language mode. It can either format a selected table (`Format Selection`) or the entire document (`Format Document`).
42
+
The extension is available for markdown language mode. It can either prettify a selected table (`Format Selection`) or the entire document (`Format Document`).
43
+
A VSCode command called `Prettify markdown tables` is also available to format format the currently opened document.
43
44
44
45
Configurable settings:
45
46
- The maximum texth length of a selection/entire document to consider for formatting. Defaults to 1M chars. There is no limit when running from the command line.
47
+
- Keyboard shortcut to prettify the currently opened markdown document. Default: CTRL+ALT+M (CMD+ALT+M on Mac).
0 commit comments