2021/08/30

Using the VSCode extension "Markdown All in One."


Installing the "Markdown All in One" extension in VSCode is convenient for writing Markdown.

Shortcut functions


keyboard operation function
Ctr+B bold (**)
Ctr+I italic(*)
Ctr+Shift+] Heading (#), # increases with each run
Ctr+Shift+[ Heading (#), # decreases with each run
Ctr+M Inserting Formulas($)
Alt+C Check box ON ([x])、Press again to turn OFF
Alt+S strike-through line(~~)
Alt+Shift+F Table formatting

The following are useful shortcuts that are already built into VSCode.

keyboard operation function
Ctr+K → v Preview display on the side
Ctr+shift+v Preview display on the tab

Automatic creation of table of contents

It automatically generates a table of contents using headings (#).

↓ like this.
MarkDownAllInOne Auto creation of table of contents


Furthermore, it automatically assigns numbers to the headings.

↓ like this.
MarkDownAllInOne Auto assign numbers to the headings


If there is a heading that you do not want to include in the table of contents, add "<!-- omit in toc -->" to the line before the heading.

List input assistance

When you are creating a list such as "-" or "1.", the list is automatically added when you add a line.
Additionally, pressing the tab key indents the list items.

HTML output

You can convert the currently open Markdown file to HTML.
Ctr+Shift+p → Markdown All in One: Print current document to HTML

When you have copied an URL, and select text then press Ctrl+V, it will automatically create a link.

MarkDownAllInOne Creating links


Comment (github account is required)