Tecnate | Last Updated: 2024-05-19
VSCode Markdown Preview Shortcut:
⌘K V(note space).
- After opening Preview,
⌘+Shift+Pand searchMarkdown: Open Locked Preview to the Sideto lock the preview mode on this document. (Otherwise, if you open another Markdown file, the preview window will switch that the new file.)
This is a quick reference guide for the most common Markdown syntax you'll need for your documents. For the best viewing and editing experience of this and other Markdown files:
- Open the .md file in VSCode.
- Install/enable the
Markdown All in Oneextension. - Preview your rendered document in a side window:
⌘K V
Paragraphs are the default. No special tags required for this magic!
- **Bold Text** = Bold Text
- _Italic Text_ = Italic Text
- <u>Underlined Text</u> = Underlined Text
- ~
Strikethrough Text~=Strikethrough Text ⇧⌥-— (Em Dash)
Blockquotes can be nested:
> Level 1
> > Level 2
> > > Level 3
Remove the spaces inside the parentheses of these elements:
- Copyright ( c ) = (c)
- Registered Trademark ( r ) = (r)
- Unregistered Trademark ( tm ) = (tm)
- Section/Silcrow ( p ) = (p)
To see these replacements in your preview window in VSCode, you need to change the default settings:
VSCode Settings:
⌘,
Markdown › Preview: Typographer- Check to enable.
This is how you make a link to Github with a URL.
You can link to other files as well. Type ## in the link to trigger intellisense and see markdown headers in the current workspace.
Images are similar to links 
console.log(
"Remember to include your code language after the backticks above."
);- You can use HTML break syntax
<br>wherever you want a line break. - Three
---will create a horizontal rule: - Horizontal rules are added by default under
h1andh2headings.
Use - to create lists:
- Item A
- Item B
- Multiple markers will work...
- Keep markers consistent to prevent accidental new lists...
- Item B
- Or unexpected formatting inconsistencies.
Start numbered lists by typing 1. (note the space); press Return or Enter to start a new line/number; press Tab or Shift+Tab after a list level to nest items underneath it.
- foo
- bar
- baz
- qux
- quux
- corge
- grault
- garply
- waldo
- fred
- plugh
- xyzzy
- plugh
- thud
- fred
Note: it doesn't matter if you type the correct sequential number after 1. . Any number you type will automatically render as the next number in the list.