Marp for VS Code turns Markdown with marp: true into slide decks with preview, directive IntelliSense, and export to HTML, PDF, PPTX, and images.
Overview
Marp for VS Code is an extension that lets you author presentation slide decks in Marp-flavored Markdown directly in Visual Studio Code. Enabling Marp via front matter or a toolbar toggle unlocks a slide-oriented preview aligned with the built-in Markdown preview, including optional highlight of the active slide from the editor caret.
IntelliSense covers Marp directives with completion, syntax highlighting, hover help, and diagnostics for common directive mistakes. Export integrates Marp CLI so you can emit HTML, PDF, PowerPoint, raster images of the first slide, or speaker notes as text. PDF and PPTX export rely on an installed Chromium-class browser or Firefox, configurable in settings.
Custom theme CSS can be registered from workspace paths or URLs and selected with the theme directive, with live reload when local CSS changes. Extended outline views list slides, and editor folding can collapse slide bodies. A web build runs on vscode.dev and github.dev with documented limitations. Workspace trust gates risky features such as broad HTML rendering and some export paths.
Key features
- Marp Markdown slide preview
- Directive IntelliSense and diagnostics
- Export HTML, PDF, PPTX, PNG, JPEG
- Marp CLI integration
- Custom theme CSS registration
- Per-slide outline and folding
- VS Code AI agent export tool
- Web extension on vscode.dev
Use cases
- Markdown-native conference slides
- Technical talks in VS Code
- PDF or PowerPoint handouts from decks
- Themed slide design iteration
- Browser-based editing on github.dev