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

PdfViewer

MichaelSam94

|
5 installs
| (0) | Free
Open PDF files quickly from VS Code
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

PdfViewer

Open PDF files quickly inside VS Code.

PdfViewer banner

Features

  • Command: PDF Viewer: Open File
  • Right-click .pdf in Explorer and open directly from the context menu
  • Open selected PDF in an in-extension preview panel
  • Commands: PDF Viewer: Zoom In, PDF Viewer: Zoom Out, PDF Viewer: Reset Zoom
  • Zoom shortcut in preview: Cmd + Mouse Wheel (macOS), Ctrl + Mouse Wheel (Windows/Linux)
  • Optional preserve-focus behavior

Extension Settings

  • pdfviewerext.openToSide: Open PDFs in side editor.
  • pdfviewerext.preserveFocus: Keep focus in current editor after opening PDF.

Scripts

  • npm run compile: Compile TypeScript
  • npm run watch: Watch and compile on changes
  • npm run lint: Run ESLint
  • npm test: Run extension tests

Run locally

  1. Install dependencies: npm install
  2. Press F5 in VS Code to launch Extension Development Host
  3. Open using either:
    • Explorer right-click on a .pdf file -> PDF Viewer: Open File
    • Command Palette -> PDF Viewer: Open File

Publish

  1. Install VSCE globally: npm i -g @vscode/vsce
  2. Login once: vsce login michaelsam94
  3. Publish: vsce publish
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft