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

autopandoc

Xavier Olive

|
36 installs
| (0) | Free
Run pandoc on Markdown file based on yaml header options
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

autopandoc

version license

This is a very basic and preliminary extension for Visual Code which is activated for any open Markdown file.

The extension parses the autopandoc entry in the YAML header and runs it on the autopandoc: Run Pandoc command, or with the Ctrl+K Ctrl+K (⌘+K ⌘+K on Mac OS) shortcut

Example:

---
autopandoc: pandoc readme.md -o readme.pdf
---

or for slides, with beamer:

---
autopandoc: pandoc slides.md -o slides.pdf -t beamer --pdf-engine=xelatex
---

Note: The command is executed from the folder containing the current file.

Installation

You need to have pandoc installed, with, if need be, the proper LaTeX compilers.

Then, look for extension xoolive.autopandoc (or run ext install xoolive.autopandoc)

Development

Generate the template for VSCode extensions (instructions)

npm install --global yo generator-code

Compile locally:

npm run compile

Publish the extension (instructions)

npm install -g @vscode/vsce
vsce publish
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft