Document Viewer Pro
A premium document viewer inside VS Code. View office documents, PDFs, spreadsheets, and more without leaving your editor — no external applications needed.
Features
Universal Document Support
| Format |
Extension |
| PDF |
.pdf |
| Word |
.docx, .doc, .docm |
| Excel |
.xlsx, .xls, .xlsm, .xlsb |
| PowerPoint |
.pptx, .ppt, .pptm |
| CSV/TSV |
.csv, .tsv, .tab |
| OpenDocument |
.odt, .ods, .odp |
| Rich Text |
.rtf |
| Plain Text |
.txt, .text, .log, .md |
| HTML |
.html, .htm, .xhtml |
| XML |
.xml, .xsl, .xslt, .xsd, .svg |
| JSON |
.json, .jsonc |
Beautiful Reader
- Modern typography with comfortable spacing
- Dark mode and light mode (follows VS Code theme)
- Responsive layout with smooth scrolling
- Native VS Code appearance
Document-Specific Features
PDF Viewer
- High-quality page rendering
- Zoom In/Out, Fit Width, Fit Page
- Full-text search with highlighting
- Page navigation with thumbnails
Word Viewer
- Formatted text with tables, images, lists
- Headings, hyperlinks, headers/footers
- Page break indicators
- Preserves original layout
Excel Viewer
- Beautiful spreadsheet grid
- Multiple sheet tabs with switching
- Freeze header row and first column
- Cell search and selection
- Auto column sizing
PowerPoint Viewer
- Slide navigation with Previous/Next
- Slide thumbnails
- Keyboard navigation (arrow keys)
- Presenter-style layout
CSV Viewer
- Spreadsheet grid view
- Column sorting (A→Z)
- Row filtering with search
- Double-click to copy cell value
- Column resize support
JSON/XML Viewer
- Syntax highlighting
- Collapsible tree view
- Expand/Collapse all
- Raw text view toggle
Commands
| Command |
Keybinding |
Document Viewer Pro: Open Viewer |
Right-click → Open with Document Viewer Pro |
Document Viewer Pro: Open Current File |
— |
Document Viewer Pro: Refresh |
Ctrl+Shift+R |
Document Viewer Pro: Export HTML Snapshot |
— |
Document Viewer Pro: Zoom In |
Ctrl+= |
Document Viewer Pro: Zoom Out |
Ctrl+- |
Document Viewer Pro: Find |
Ctrl+F |
Settings
| Setting |
Default |
Description |
documentViewerPro.zoomLevel |
100 |
Default zoom level (25–400%) |
documentViewerPro.theme |
auto |
Viewer theme (auto/light/dark) |
documentViewerPro.fontSize |
14 |
Font size for text documents |
documentViewerPro.lineSpacing |
1.5 |
Line spacing for text |
documentViewerPro.enableThumbnails |
true |
Show thumbnails panel |
documentViewerPro.rememberLastPage |
true |
Remember last page on reopen |
documentViewerPro.rememberZoom |
true |
Remember zoom level per document |
documentViewerPro.autoFitWidth |
true |
Auto-fit document width |
Installation
From VS Code Marketplace
- Open VS Code
- Go to Extensions (
Ctrl+Shift+X)
- Search for "Document Viewer Pro"
- Click Install
From VSIX
code --install-extension document-viewer-pro-1.0.0.vsix
Requirements
Extension Settings
This extension contributes the following settings:
documentViewerPro.* — see table above
Known Issues
- DOCX rendering requires the
mammoth npm package
- XLSX/XLS rendering requires the
xlsx npm package
- PPTX rendering requires
jszip for XML extraction
- Some complex DOCX formatting may not render perfectly
- PowerPoint charts and animations are not supported
Release Notes
See CHANGELOG.md for release history.
License
MIT
Architecture
Built with a plugin-based renderer system. Each document format has its own renderer registered with a central registry. New formats can be added by implementing the Renderer interface and registering it.
src/
commands/ # Extension commands
providers/ # Webview provider
renderers/ # Format-specific renderers
pdf/
word/
excel/
powerpoint/
csv/
json/
xml/
text/
html/
rtf/
odf/
shared/ # Shared utilities
utils/ # Helper functions
types/ # TypeScript types
| |