Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>PDF PreviewNew to Visual Studio Code? Get it now.
PDF Preview

PDF Preview

fox20431

|
1,386 installs
| (0) | Free
Display PDF file in VSCode.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

pdf

Display pdf in VSCode.

Fork from https://github.com/tomoki1207/vscode-pdfviewer/blob/master/lib/main.js

Contribute

Upgrade PDF.js

  1. Download latest Prebuilt.
  2. Extract the ZIP file.
  3. Overwrite ./lib/* by extracted directories.
    • If lib/web/viewer.html has changes, apply these changes to HTML template at pdfPreview.ts.
  4. To not use sample pdf.
  • Remove sample pdf called compressed.tracemonkey-pldi-09.pdf.
  • Remove code about using sample pdf from lib/web/viewer.js.
    defaultUrl: {
      value: "", // "compressed.tracemonkey-pldi-09.pdf"
      kind: OptionKind.VIEWER
    },
    

Change log

See CHANGELOG.md.

License

Please see LICENSE

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