AGR Document Viewer
View Word, Excel, PowerPoint and PDF documents right inside Visual Studio Code, by AGR Labs.


Features
- Single click on a
.docx, .xlsx, .xlsm or .pptx file in the Explorer: it opens in a VS Code tab.
- Double-click: it opens directly in its default app (Word, Excel, PowerPoint, Pages, Numbers…).
- Right-click → Open in Office, or the button at the top of the tab, does the same.
- Word: white pages with headings, tables, lists, images and colors.
- Excel: the real grid with cell colors (explicit, theme and indexed colors), number formats (currencies as the workbook sets them, dates, times, percentages), merged cells, column widths and sheet tabs. Large sheets load progressively as you scroll.
- PowerPoint: slides stacked one under another.
- PDF: pages stacked one under another, with selectable and copyable text and working links (web links go through VS Code's confirmation, except for domains you trust; internal links jump to their page). Large PDFs load page by page as you scroll. Double-clicking a PDF keeps it in VS Code; Open in Default App opens it in your PDF reader.
- Find with
Ctrl+F (Cmd+F on macOS): the VS Code find widget searches the document shown.
- Zoom with
− / + or Ctrl + / − (Ctrl+0 to reset); PDF pages are redrawn at the new size, so text stays sharp. The view reloads when the file changes on disk and keeps your place: scroll position, active sheet, zoom and PDF page.
Read-only: the viewer never modifies your files.
Privacy
Everything runs locally and offline. No document is ever uploaded, and no remote content is loaded. Links inside a document open only when you click them, and only web (http, https) and mailto: links: VS Code asks for confirmation before opening a website, unless you have added its domain to your trusted domains; a mailto: link opens your mail app directly. JavaScript embedded in a PDF is never run, and HTML embedded in a Word document is not displayed. Open in Office and Open in Default App only open Word, Excel, PowerPoint and PDF files.
Known limitations
- Word: pages are split only at explicit page breaks, and floating (anchored) images may be misplaced.
- PowerPoint: some layouts inherited from the slide master (bullets, vertical alignment), charts and SmartArt can be approximate.
- Excel: a formula never calculated by Excel is shown as the formula itself, in grey italics. Colors that come from a table style or from conditional formatting are not shown. Dates are always written as
yyyy-mm-dd, whatever the cell's date format.
- PDF: password-protected files, form filling and thumbnails are not supported yet; use Open in Default App.
- Find only searches what is on screen or already loaded: in a PDF, the pages near the visible area; in a large sheet, the rows loaded so far. While it is open, the find widget covers the right side of the viewer's toolbar.
- Legacy formats (
.doc, .xls, .ppt) are not supported; use Open in Office.
Settings
agrOffice.doubleClickOpensOffice (default true): set to false to keep double-clicked Office files in VS Code.
- If another PDF extension is installed, VS Code asks which one to use; to choose AGR Document Viewer, right-click a PDF tab → Reopen Editor With… → Configure default editor for '*.pdf'.
Credits
Rendering by docx-preview (Apache-2.0), ExcelJS (MIT), pptx-preview (ISC) and Mozilla's PDF.js (Apache-2.0). See THIRD-PARTY-NOTICES.txt. Microsoft Word, Excel and PowerPoint are trademarks of Microsoft; they are mentioned only to describe the file formats.
Made by AGR Labs.
| |