Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>MdToPdfNew to Visual Studio Code? Get it now.
MdToPdf

MdToPdf

MichaelSam94

|
4 installs
| (0) | Free
Convert Markdown files to PDF from VS Code
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

MdToPdf

Convert Markdown files to PDF inside VS Code.

MdToPdf banner

Features

  • Command: Markdown to PDF: Convert File
  • Right-click .md in Explorer and convert directly from the context menu
  • Select a .md file and generate a .pdf file
  • Optional auto-open of the generated PDF file
  • Configurable output folder and overwrite behavior

Extension Settings

  • mdtopdfext.outputFolder: Target folder for generated PDF files.
    • Empty: save next to source .md
    • Relative: resolved from the first workspace folder
    • Absolute: used directly
  • mdtopdfext.overwriteExisting: Overwrite existing .pdf file if present.
  • mdtopdfext.openAfterConvert: Open generated PDF file after conversion.
  • mdtopdfext.chromeExecutablePath: Optional path to Chrome/Chromium executable used by the converter.

Scripts

  • npm run compile: Compile TypeScript
  • npm run watch: Watch and compile on changes
  • npm run lint: Run ESLint
  • npm test: Run extension tests

Run locally

  1. Install dependencies: npm install
  2. Press F5 in VS Code to launch Extension Development Host
  3. Convert using either:
    • Explorer right-click on a .md file -> Markdown to PDF: Convert File
    • Command Palette -> Markdown to PDF: Convert File

Publish

  1. Install VSCE globally: npm i -g @vscode/vsce
  2. Login once: vsce login michaelsam94
  3. Publish: vsce publish
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft