Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can VSCode display a Markdown syntax preview pane?

I am typing a README document in Markdown using Visual Studio Code. I found an online browser-based tool called Markdown Live Preview, but I was wondering if VSCode had any sort of handy split-window pane already built into it.

like image 579
Ancalagon Avatar asked Sep 13 '25 15:09

Ancalagon


2 Answers

Make sure that your document is saved as a Markdown file in VSCode:

File > Save as > README.md (The text will be color-coded.)

In the top right corner of VSCode, click the "Split Editor" icon to enable side-by-side editing.

Click the "Open Preview" magnifying glass icon to view a live preview of your Markdown syntax that updates as you type!

VSCode Icon Labels

like image 129
Saelia Avatar answered Sep 15 '25 14:09

Saelia


The "Mouse-Clicks" way seems inefficient, try vscode pre-defined keybind as markdown.showPreviewToSide:

ctrl+k v

which means when you are editing a markdown file, press Ctrl+k, then loosen both and press v, it comes a preview of current markdown file in the other splited side.

like image 31
vbem Avatar answered Sep 15 '25 12:09

vbem