Previewing Markdown files with VScode

How to quickly see if your Markdown files are formatted correctly

This website is created using Jekyll and the posts are written in Markdown. When Iā€™m writing Markdown I find it useful to know if Iā€™m formatting it correctly without having to fire up my local server.

VScode allows us to preview Markdown files easily including images. VScode supports .markdown and .md files out of the box so there is no need to add any additional plugins to get the preview functionality to work. To open up a tab with the Markdown preview you just need to press shift + command + v. To get a split screen with your Markdown file and a preview press command + k let go and then press v.

Markdown file beside Markdown preview tab


Recent posts View all

Ruby

What are the square brackets in my Rails migrations?

Let's look at what these little square brackets are doing in our Rails migration files

Web Dev

Setting a minimum TLS version with CloudFlare

How to set a minimum TLS version on CloudFlare and why you should consider it