PdfViewer
Open PDF files quickly inside VS Code.

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
- Install dependencies:
npm install
- Press
F5 in VS Code to launch Extension Development Host
- Open using either:
- Explorer right-click on a
.pdf file -> PDF Viewer: Open File
- Command Palette ->
PDF Viewer: Open File
Publish
- Install VSCE globally:
npm i -g @vscode/vsce
- Login once:
vsce login michaelsam94
- Publish:
vsce publish
| |