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

Print2Paper4VSCode

Applied Media

|
105 installs
| (2) | Free
Print selections or current tabs with syntax highlighting and interactive PDF preview
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Print2Paper4VSCode

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.

Print2Paper4VSCode preview panel showing the zoom dropdown with 50%-300%, Fit Width, and Fit Page options

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 as PDF, Print, Print Sample

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

Page menu: Letter, A4, Legal, Tabloid, A3, A5, with portrait and landscape orientation

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

Theme menu: Shiki theme picker dropdown

Theme menu — light Shiki themes curated for print legibility.

Text menu: font size from 8 px to 48 px

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

Zoom menu: 50% to 300%, Fit Width, Fit Page

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

Markdown mode menu: raw vs render toggle

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

About menu

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.PrintDialog with 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.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft