I live in VS Code. Code, terminal, git — it's all there. But documents kept pulling me out of it. A spec arrives as a .docx. A test report as an .xlsx. A paper as a PDF. Meeting notes in Markdown. Every one of them meant the same ritual: leave the editor, wait for a heavy app to launch, find my place again, and then come back and find my place in the code again.
So I built an extension that keeps documents inside the editor: ViewAny.
The idea is simple. Open a Markdown, Word, Excel, HTML, or PDF file, and it opens in VS Code — not as plain text, but as the document itself. Read it, annotate it, edit it, save it back. The whole round trip happens in one window.
Markdown, the way Typora does it
Markdown is where this started. ViewAny gives you a real WYSIWYG editor: you type, and the formatting appears as you go — no source/preview split eating half your screen. Tables you can edit in place, task lists you can check off, an outline tree built from your headings.
Two details I care about: KaTeX math renders inline and in blocks, and Mermaid diagrams are editable — you can drag to resize a flowchart, and the size is stored as a plain HTML comment, so GitHub and Obsidian still render the same diagram. Images get the same treatment: eight resize handles, exact width and height if you want them. And when you need the source, split view keeps the visual editor and the raw Markdown in sync, cursor and scroll included.
PDF: read it, mark it, keep the marks
The PDF viewer runs on PDF.js, so rendering is solid, including CJK text. You get a pen, a highlighter, and sticky notes — and since v2.9, those annotations are written as real PDF annotation objects, not flattened into the page. That means Acrobat, Preview, and browsers list them in their own annotation panels, and you can edit or delete them individually later.
You can also delete, rotate, reorder, extract, and merge pages, and burn the annotations into the file on save. Encrypted PDFs open read-only unless you have the password, and if a document is digitally signed, the editor warns you before you edit, because editing invalidates the signature.
Word and Excel, without the app launch
A .docx opens with real A4 pagination. You edit it visually and save it back as a binary .docx — Word and WPS open it without complaint, and tables that span pages are stitched back together on save instead of being left split.
Spreadsheets get a real grid: multi-sheet tabs, drag to resize, and a formula engine (=SUM, =AVERAGE, and the rest) where formulas are preserved on save instead of being flattened to values.
There's also an HTML editor with five viewports — mobile, tablet, laptop, free canvas, and print — for checking a responsive template without opening a browser.
Everything stays local
All parsing, rendering, and conversion runs inside VS Code. Nothing is uploaded anywhere. That matters to me more than any feature: documents are often the most sensitive files in a repo, and they shouldn't have to leave the machine to be read.
The free version covers viewing and WYSIWYG editing for every format, and export is free for single-page files. Pro unlocks unlimited multi-page export, native Word formula support, and priority updates.
If your day also involves bouncing between an editor and a document app, it's here: ViewAny on the VS Code Marketplace. Source and releases are on GitHub.
What document workflow still pulls you out of your editor? I'm curious what I'm missing.
Top comments (0)