How to convert markdown files to PDF in VSCode
Find out how to convert your markdown files and export it as pdf using Markdown PDF plugin in VSCode.
Markdown is a very simple and easy-to-use markup language for creating formatted text using any text editor.
In this post, we will see how to convert a markdown to pdf in the VSCode editor.
You can also use markdown to create content for a website using a markdown compiler that converts markdown content to HTML.
However, here we will see how we can convert and export our markdown file to pdf format from our VSCode editor.
In VS code, we can use the extension Markdown PDF to export our file into various formats like pdf, html, jpeg, and png.
Convert and export markdown to pdf
First, install the Markdown PDF plugin in your VSCode editor.
Using command palette in VSCode
Next, open your markdown file and press F1 or cmd+Shift+P and then export and select the format you want your file to be exported.

Using the menu in VSCode
You can also convert the file to pdf using the menu too.
After you have installed the plugin, just open the markdown file, and right-click on it, and then select the desired format you want to export your file.

Related Topics:
Related Posts
Checkbox inside GitHub Markdown Table
Short article on how to create checkbox or tick and cross mark inside markdown table in Github using emoji.
How to convert markdown to PDF offline with Pandoc Converter
Find out how to convert or merge two or more markdown files into a pdf format in windows and MacOs using command line in Pandoc document converter.
Easy Way to add Emoji in markdown with VS Code
Find out how to add emoji in your markdown document in VS Code using markdown emoji or emojisense plugins.
How to open markdown link in new tab
Article on how to open a markdown link in a new tab in browser using target="_blank" in the ahref link.
