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

|
1,140 installs
| (4) | 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

Marketplace Version Installs License

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 with decimal support (0.5 steps)
  • Editable Font Size — Type the exact font size directly into the input field
  • UTF-8 / Unicode Support — Full support for Spanish (ñ, á), French (à, ê), German (ü, ß) and other non-ASCII characters
  • 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

See the full changelog in CHANGELOG.md.

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