Skip to content
| Marketplace
Sign in
Visual Studio Code>Formatters>CodePDF ExporterNew to Visual Studio Code? Get it now.
CodePDF Exporter

CodePDF Exporter

Sruthi S Menon

|
2 installs
| (1) | Free
Export your entire VS Code project or selected files to a clean PDF with file titles, line numbers, and font customization. Perfect for printing code, sharing projects, and documentation.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

CodePDF Exporter

VS Code Marketplace Downloads Version License

CodePDF Exporter Preview

A VS Code extension that lets you export your VS Code project or selected files to PDF.
Perfect for printing code, sharing projects, and generating clean documentation.

Features

  • Whole Project Export — Export all code files in the workspace to a single PDF
  • Selective Export — Pick specific files to include
  • Font Size Control — Adjustable font size (8–20px) via slider
  • New Page Per File — Option to start each file on a new page, or flow continuously with spacing
  • Line Numbers — Every line is numbered with a clean separator
  • Word Wrap — Long lines wrap automatically to fit the page
  • Smart File Detection — Automatically finds code files and skips binaries, configs, and build artifacts

Supported Languages

.ts .js .py .java .cpp .c .cs .html .css .scss .php .rb .go .rs .swift .kt .dart .tsx .jsx .vue .sh .bash .yaml .yml .xml

Installation

  1. Open VS Code
  2. Go to Extensions (Ctrl+Shift+X)
  3. Search for CodePDF Exporter
  4. Click Install

Usage

  1. Click the CodePDF Exporter icon in the Activity Bar (left sidebar)
  2. Choose Whole Project or Select Specific Files
  3. Adjust font size and options as needed
  4. Click Generate PDF
  5. Choose where to save and you're done

Extension Settings

This extension does not add any VS Code settings. All configuration is done through the sidebar panel.

Release Notes

0.0.1

  • Initial release
  • Whole project and selective file export
  • Configurable font size
  • New page per file toggle
  • Line numbers with separator
  • Automatic line wrapping

Contributing

Contributions, issues, and feature requests are welcome.
Feel free to open a pull request on GitHub.

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