PDF reading and referencing extension for VS Code.
It adds a custom PDF preview with smooth zoom, navigation, dark-mode reading, outline tools, and comment references from source code to PDF pages/sections.
Features
Custom editor for *.pdf with performant rendering.
Page navigation command:
PDF: Go to Page
Shortcut: Alt+G in PDF preview.
Clickable PDF links:
Internal PDF destinations.
External URLs (http, https, mailto).
PDF outline support:
PDF Outline tree in Explorer (for active PDF preview).
Quick outline picker via Ctrl+Shift+O (in active PDF preview).
Context menu actions in outline tree:
Copy Section Name
Copy Full Section Name
Copy Section Path
Copy Full Section Path
Code comment references to PDFs:
@pdf(docs/spec.pdf#page=12)
@pdf(docs/spec.pdf#outline=Chapter 2 > Rendering)
Dark mode for PDF reading with setting-based control.
Commands
PDF: Go to Page
PDF: Show Outline
PDF: Toggle Dark Mode
PDF: Refresh Outline
Settings
vscode-pdf-docs.darkMode
off: Always light PDF rendering.
on: Always dark PDF rendering.
auto (default): Follows current VS Code theme.
Using PDF References in Code
References are detected through @pdf(...) tokens anywhere in text (commonly in comments).