How to Use Marp Extension in VS Code
Quick guide to create your PowerPoint presentation using the Marp extension you just installed.
🚀 Quick Start (3 Steps)
Step 1: Open the Marp File
- In VS Code, open the file:
presentation/PRESENTATION_MARP.md - You should see the Markdown content with
---separators
Step 2: Preview the Presentation
Option A: Click the Preview Button
- Look for the "Open Preview to the Side" button in the top-right corner
- It looks like a split-screen icon with "Marp" label
- Click it to see live preview
Option B: Use Command Palette
- Press
Ctrl+Shift+P(Windows/Linux) orCmd+Shift+P(Mac) - Type:
Marp: Open Preview - Press Enter
Option C: Right-Click
- Right-click anywhere in the Markdown file
- Select
Marp: Open Preview to the Side
Step 3: Export to PowerPoint
- In the preview window, click the menu icon (three dots) in top-right
- Select "Export Slide Deck..."
- Choose "PowerPoint (PPTX)"
- Choose where to save the file
- Done! You now have a PowerPoint file
📊 What You'll See
In the Editor (Left Side)
---
marp: true
theme: default
---
# Slide Title
Content here
---
# Next Slide
More content
In the Preview (Right Side)
- Live presentation slides
- Navigation controls at bottom
- Slide counter (e.g., "1 / 35")
- Full-screen button
🎮 Navigation Controls
In Preview Window
Mouse:
- Click left/right arrows at bottom
- Click slide number to jump to specific slide
- Click full-screen icon for presentation mode
Keyboard:
→orSpace- Next slide←- Previous slideHome- First slideEnd- Last slideF11- Full screen
📝 Editing Tips
Live Updates
- Any changes you make in the Markdown file
- Will automatically update in the preview
- No need to refresh!
Slide Separators
# Slide 1
Content
---
# Slide 2
More content
- Each
---creates a new slide - Must be on its own line
Special Slide Classes
<!-- _class: lead -->
# Centered Title Slide
lead- Centers content, larger textinvert- Dark background, light text
🎨 Customization
Change Theme
At the top of PRESENTATION_MARP.md:
---
marp: true
theme: default # Change to: gaia, uncover
---
Available themes:
default- Clean, professional (current)gaia- Modern, colorfuluncover- Minimalist, elegant
Change Colors
---
marp: true
theme: default
backgroundColor: #f0f0f0
color: #333
---
Custom Styling
---
marp: true
style: |
section {
background-color: #0078d4;
}
h1 {
color: white;
}
---
📤 Export Options
1. PowerPoint (PPTX) ⭐ Recommended
- Click menu → Export → PowerPoint
- Fully editable in PowerPoint
- Best for sharing with team
2. PDF
- Click menu → Export → PDF
- Good for printing
- Preserves exact layout
3. HTML
- Click menu → Export → HTML
- Self-contained web page
- Can present in browser
4. PNG Images
- Click menu → Export → PNG
- One image per slide
- Good for documentation
🔧 Troubleshooting
Problem: "No preview button visible"
Solution:
- Make sure file starts with:
---
marp: true
--- - Save the file (
Ctrl+S) - Restart VS Code if needed
Problem: "Preview shows Markdown, not slides"
Solution:
- Check that
marp: trueis in the frontmatter - Make sure Marp extension is enabled
- Try closing and reopening the preview
Problem: "Export button is grayed out"
Solution:
- Make sure preview is open
- Click in the preview window first
- Try using Command Palette:
Marp: Export Slide Deck
Problem: "Slides look wrong"
Solution:
- Check slide separators are
---on their own line - Verify Markdown syntax is correct
- Try different theme to see if it's a styling issue
💡 Pro Tips
1. Use Speaker Notes
# Slide Title
Content here
<!--
These are speaker notes
They won't appear on the slide
But you can see them in presenter mode
-->
2. Add Images
# Slide with Image

# Background Image

3. Two-Column Layout
<div class="columns">
<div>
## Left Column
Content here
</div>
<div>
## Right Column
More content
</div>
</div>
4. Code Highlighting
# Code Example
\`\`\`python
def hello():
print("Hello, World!")
\`\`\`
5. Presenter Mode
- Export to HTML
- Open in browser
- Press
Pfor presenter view - Shows current slide + next slide + notes
✅ Checklist for Your Presentation
- Open
presentation/PRESENTATION_MARP.mdin VS Code - Click "Open Preview to the Side" button
- Review all 35+ slides in preview
- Make any edits needed (auto-updates in preview)
- Click menu → Export → PowerPoint (PPTX)
- Save as
Documentation_System_Presentation.pptx - Open in PowerPoint to verify
- Customize further in PowerPoint if needed
- You're ready to present! 🎤
📚 Additional Resources
Marp Documentation:
- Official Guide: https://marp.app/
- Markdown Syntax: https://marpit.marp.app/markdown
- Themes: https://github.com/marp-team/marp-core/tree/main/themes
VS Code Extension:
- Marketplace: Search "Marp for VS Code"
- GitHub: https://github.com/marp-team/marp-vscode
Keyboard Shortcuts:
Ctrl+Shift+P→Marp: Open PreviewCtrl+Shift+P→Marp: Export Slide Deck
🎯 Summary
You have everything you need:
- ✅ Marp extension installed
- ✅ Presentation file created (
PRESENTATION_MARP.md) - ✅ 35+ slides ready to present
- ✅ This guide for reference
Next steps:
- Open
PRESENTATION_MARP.md - Click preview button
- Export to PowerPoint
- Present! 🎉
Need Help?
- Check this guide
- See
presentation/README_PRESENTATION.md - Marp documentation: https://marp.app/
Last Updated: 2025-11-28