You can easily convert and markdown file (.Md) to a PDF in VSCode using this handy extension Markdown PDF.