Print or save any code or markdown file as a syntax-highlighted PDF with one keystroke. Live preview, light Shiki themes optimized for printing, every page size you would actually use.

Features
- One-keystroke print, three ways: Opt/Alt+P in any editor, click the printer icon in the editor toolbar, or right-click the editor tab → Print2Paper
- Light-colored Shiki themes curated for easy printing — defaults to your active VS Code theme
- Vector PDF output via jsPDF: scalable, crisp, never rasterized
- Markdown files render in raw mode (syntax-highlighted source) or render mode (HTML preview)
- Works on macOS, Windows, and Linux
Usage
Ways to invoke this extension on the active editor:
- Press Opt/Alt+P
- Click the printer icon in the editor toolbar
- Right-click the editor tab and choose Print2Paper
- Right-click in the editor and choose Print2Paper
- Open the Command Palette (Cmd+Shift+P / Ctrl+Shift+P) and run Print: Print2Paper
A preview panel opens beside your editor. The toolbar gives you live control over page size, orientation, margins, zoom, font size, header/footer, and theme — changes render instantly.
The only VS Code setting this extension uses is the keyboard shortcut, which you can rebind via About menu → Shortcut.
Toolbar tour

Print menu — save to disk, send to your default printer, or open the system print dialog.

Page menu — page size, orientation, margins, and header/footer content.

Theme menu — light Shiki themes curated for print legibility.

Text menu — font size from 8 px to 48 px.

Zoom menu — 50% to 300%, Fit Width, or Fit Page.

Markdown mode menu — only appears for .md files. Toggle between syntax-highlighted source and rendered HTML.

About menu — version, links, and your current keyboard shortcut.
Platform support
- macOS: AppleScript-driven Preview integration plus direct print to the default printer
- Windows: PowerShell-driven
System.Windows.Forms.PrintDialogwith structured handling for missing printers, missing PDF readers, and other failure modes - Linux: CUPS detection plus viewer selection (Okular, Evince, and other common PDF viewers)
Source code and contributing
This extension is open source. Report bugs: p2p4vsc.support. Submit pull requests: p2p4vsc.dev.
About Applied Media
🇺🇸 Made in the USA · 🌍 Global friendly · 100% Code Transparency
License
Released under the Code Transparency v1 license.