Skip to content
| Marketplace
Sign in
Visual Studio Code>Visualization>Nightdocs — Office Viewer & Diff for Word, Excel & PowerPointNew to Visual Studio Code? Get it now.
Nightdocs — Office Viewer & Diff for Word, Excel & PowerPoint

Nightdocs — Office Viewer & Diff for Word, Excel & PowerPoint

MBK Dev Studio

|
50 installs
| (1) | Free
View Word, Excel and PowerPoint (.docx, .xlsx, .pptx) and Markdown files in dark mode and diff versions side by side, straight from Git. Markdown front matter for AI agents, skills and rules. Fast, private and view-only.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Nightdocs

Visual Studio Marketplace Visual Studio Marketplace installs Open VSX Open VSX downloads CI License: MIT

Read Word, Excel, PowerPoint and Markdown files in VS Code, in your dark theme.

Nightdocs is a lightweight, view-only Office viewer for Word (.docx), Excel (.xlsx) and PowerPoint (.pptx) files, templates and macro-enabled files included. Documents take on your editor's colors so a white page doesn't light up a dark room. Changed files from Git open side by side with the differences marked, and when you need to edit, one click opens the file in Word, Excel or PowerPoint.

Markdown (.md) gets a modern reading view and a rendered comparison, with front matter shown as properties: made for the agent, skill, command and rule files of AI tools as much as for READMEs.

Nightdocs showing a Word document in dark and original colors, an Excel workbook with a sum and charts, and a PowerPoint presentation with its slide pane

Why Nightdocs

  • Dark-first. Pages, text, tables and fills are remapped to your theme. Colors keep their hue and text keeps readable contrast. Pictures keep their colors and are only dimmed. One click on ◐ shows the original colors.
  • Fast and view-only. Files open in about a second, and sheets with 100,000 rows scroll smoothly. Nothing can be changed by accident.
  • See what changed. Compare two versions of a document, workbook, presentation or Markdown file side by side, straight from Source Control, with the changes marked down to the word or cell, and an overview beside the scrollbar of where they are.
  • Edit in Office when you need to. Open in Word, Open in Excel or Open in PowerPoint hands the file to its desktop app. The view refreshes when the file is saved.
  • Private. No telemetry, and nothing goes online unless you ask: pictures from the web in a Markdown file load only after you choose Show Online Content. Your files never leave your machine.

Features

Word (.docx, .docm, .dotx, .dotm)

A Word document in Nightdocs with a dark VS Code theme

  • Page layout with headers, footers, footnotes, tables, lists, images and links
  • Comments and tracked changes, as Word's "All Markup" shows them: hover a comment to read it, list them all from the status bar, or hide the markup to read the text with all changes accepted
  • Documents that Word never paginated (exports from other apps, generated files) are split into pages
  • A navigation pane with the headings as an outline, as in Word: fold sections, click a heading to go there, and see where you are
  • The status bar shows the current page; Go to Heading… (Ctrl+Shift+O) finds a heading as you type
  • Find with Ctrl+F

Excel (.xlsx, .xlsm, .xltx, .xltm)

  • Cell styles, number formats, and dates in your locale's short format
  • Merged cells, frozen panes, hidden rows, columns and sheets, and row and column fills
  • Text spills into empty neighbors the way it's aligned, including center across selection
  • Conditional formatting: highlight rules, color scales and data bars
  • Pictures, text boxes and charts; charts follow your theme as in presentations: text and gridlines adapt, data keeps its colors
  • Select cells with the mouse or keyboard, copy them, and see the cell's text and formula, or Sum, Count and Average, in the status bar under the sheet tabs
  • Copy as Markdown Table (right-click, or the Command Palette) for READMEs, issues and chats; with one cell selected, it copies the block of data around it
  • Links in cells: Ctrl+click a linked cell, or the link in the status bar, to open a web or mail link (VS Code asks first) or go to the place in the workbook it points to
  • Find across the whole sheet, not only the visible cells
  • Workbooks with many sheets: scroll the tabs with the mouse wheel or the arrows, pick a sheet from All Sheets (also Go to Sheet…, Ctrl+Shift+O), where typing filters the list, or keep them all in view in the navigation pane

An Excel workbook in Nightdocs with conditional formatting and a selection summed in the status bar

PowerPoint (.pptx, .pptm, .ppsx, .ppsm, .potx, .potm)

  • Slides with text, bullets, tables, shapes, pictures, SmartArt and charts
  • Charts follow your theme too: text and gridlines adapt, data keeps its colors
  • Slides designed dark, or drawn on a picture, keep their look
  • Hidden slides are shown dimmed and marked
  • A slide pane with thumbnails, as in PowerPoint, that follows the slide you're on
  • Speaker notes under each slide, as in PowerPoint's notes pane; Notes in the status bar hides them
  • The status bar shows the current slide; Page Down and Page Up step from slide to slide, Go to Slide… (Ctrl+Shift+O) lists them by title, and links between slides work
  • Find with Ctrl+F

A PowerPoint presentation in Nightdocs with charts adapted to a dark theme

Markdown (.md, .markdown, .mdc)

A Markdown file in Nightdocs: front matter as properties, a note, and the headings in the navigation pane

  • Open in Nightdocs (the book icon in the title bar of a Markdown file, or right-click it in the Explorer) opens the view beside the text editor, which stays the default for Markdown. The view follows your typing and scrolls along with the editor; Edit takes you back to the text at the place you were reading
  • GitHub Flavored Markdown: tables, task lists, strikethrough, footnotes, alerts (> [!NOTE], > [!WARNING] and the rest), bare links, and <details> and other safe HTML
  • Front matter as a card of properties: text, numbers, yes/no, lists as chips and nested values, or the YAML itself with Show as YAML. YAML that doesn't parse is reported with its line, before an AI tool quietly ignores your agent, skill, command or rule file
  • Tags that structure prompts, like <instructions> or <example>, frame what they hold instead of disappearing as they would in a browser
  • Code blocks colored like your editor, with a copy button
  • Pictures next to the file are shown. Pictures on the web, such as badges, wait until you choose Show Online Content (or turn on nightdocs.markdown.showOnlineContent); until then badges show their text and other pictures a placeholder
  • Links to other Markdown files open in Nightdocs at the heading they point to; links to code open it, at the lines of a #L12-L20 link
  • The headings in the navigation pane and in Go to Heading…
  • Copy Reference gives docs/guide.md, lines 12-18, under "Setup"; with text, it adds the Markdown of those lines

An AI agent file in Nightdocs: its tools as chips and its instructions and example framed

Comparing versions

  • Open a changed Word document, Excel workbook or PowerPoint presentation from Source Control (changes or staged changes), or compare two files with Select for Compare, and Nightdocs shows both versions side by side. There is nothing to set up: VS Code uses Nightdocs for both sides.
  • Markdown comparisons open as text, as before; Open in Nightdocs in their title bar shows them rendered. To always see them rendered, turn on Nightdocs › Markdown: Compare Rendered (nightdocs.markdown.compareRendered); Edit turns one back into text.
  • Word: edited, added and removed paragraphs and table cells are marked, down to the changed words
  • Excel: changed cells and added and removed rows and columns are marked, and sheet tabs with changes get a dot; moving between changes goes from sheet to sheet, and switching sheets on one side switches the other. Selecting cells on one side selects the same cells on the other, and the status bar marks what changed in the selected cell
  • PowerPoint: edited slides are outlined with their changed words, pictures and charts marked; added and removed slides are tinted, with an empty stand-in on the other side so both decks line up
  • Markdown: edited, added and removed paragraphs, list items, table rows, lines of code and front matter properties are marked, down to the changed words
  • Word and Markdown: Inline View in the status bar (or Nightdocs: Toggle Inline View) shows one document instead, as VS Code's inline diff does: what was removed or edited just above what replaced it, inside the same list, table cell or code block. A removed numbered clause keeps the number it had. The choice holds for the next comparisons; until you make one, Nightdocs follows VS Code's Diff Editor: Render Side By Side. Comparisons that open in Nightdocs directly (Word documents from Source Control, Markdown files with "workbench.diffEditorAssociations": { "*.md": "nightdocs.markdown" }) follow it too
  • Both sides scroll and zoom together; F7 and Shift+F7 or the arrows in the status bar move between changes
  • Beside the scrollbar, an overview shows where the changes are in the whole file, as in VS Code's diff editor: removed content on the left, added on the right. Click a change to go to it

Two versions of a Markdown file side by side in Nightdocs, with the changes marked and the overview of changes beside the scrollbar

A Markdown comparison in Nightdocs's Inline View: each removed or edited block of the old version just above the new one

Two versions of a Word document side by side in Nightdocs, with the changes marked

Two versions of an Excel workbook side by side in Nightdocs, with changed cells and rows marked

Two versions of a PowerPoint presentation side by side in Nightdocs, with a changed chart and an added slide marked

Everywhere

  • Zoom with the toolbar, the keyboard, Ctrl+mouse wheel or pinch
  • The navigation pane opens from the button at the left of the toolbar or with Toggle Navigation Pane, and stays open for files of that kind
  • Point an AI assistant or a teammate at a place in a document: right-click and choose Copy Reference to get docs/report.docx, page 3, under "Regional results" on the clipboard, ready to paste into a chat with Claude Code or any assistant that works in your workspace. Copy Reference with Text adds the paragraph, the selected cells as a Markdown table, or the slide's text
  • Live reload that keeps your place
  • Dark, light and high contrast themes
  • Keyboard and screen reader support
  • English and Turkish
  • Works in VS Code for the Web too: open Office and Markdown files on vscode.dev and github.dev without installing anything

Getting started

  1. Install Nightdocs from the Visual Studio Marketplace or, in VSCodium and other editors that use it, Open VSX. Or search for "Nightdocs" in the Extensions view.
  2. Open a Word, Excel or PowerPoint file: .docx, .xlsx or .pptx, or one of their macro-enabled (.docm, .xlsm, .pptm, .ppsm) and template (.dotx, .xltx, .potx) variants. Nightdocs is the default viewer for these files.
  3. Open a Markdown file and choose Open in Nightdocs in its title bar. Markdown keeps opening in the text editor.

If another extension also opens these files, right-click the file and choose Open With… › Nightdocs, then Configure default editor. Or add this to your settings; the last line opens Markdown in Nightdocs too, for those who mostly read it:

"workbench.editorAssociations": {
  "*.docx": "nightdocs.viewer",
  "*.xlsx": "nightdocs.viewer",
  "*.xlsm": "nightdocs.viewer",
  "*.pptx": "nightdocs.viewer",
  "*.md": "nightdocs.markdown"
}

Settings

Setting Default What it does
nightdocs.markdown.compareRendered false Shows comparisons of Markdown files (Source Control changes, Compare Selected) rendered instead of as text
nightdocs.markdown.showOnlineContent false Shows the pictures of Markdown files that come from the web, such as badges, without asking

Keyboard shortcuts

Action Windows / Linux macOS
Zoom in / out Ctrl+= / Ctrl+- Cmd+= / Cmd+-
Reset zoom Ctrl+Numpad 0 Cmd+Numpad 0
Find Ctrl+F Cmd+F
Next / previous sheet Ctrl+Alt+PgDn / PgUp Cmd+Alt+PgDn / PgUp
Copy selected cells Ctrl+C Cmd+C
Next / previous slide PgDn / PgUp PgDn / PgUp
Go to heading, slide or sheet Ctrl+Shift+O Cmd+Shift+O
Next / previous change F7 / Shift+F7 F7 / Shift+F7

Limitations

  • The older binary formats (.doc, .xls, .ppt) aren't supported yet.
  • In VS Code for the Web there is no desktop Office to hand a file to, so Open in Office isn't offered there.
  • Password-protected files can't be opened; Nightdocs says so and offers to open them in Office.
  • Excel formulas aren't recalculated: cells show the values saved in the file.
  • Excel icon sets and conditional formatting rules with custom formulas aren't drawn yet.
  • Comparisons go by content, not formatting: a changed font or color isn't marked. In Excel a formula that changed but gives the same value isn't marked; in PowerPoint slides compare by their text, pictures and chart data, and a moved slide shows as removed in one place and added in another. Files in Git LFS compare only when their content is on this machine: Nightdocs doesn't download it. In Word's Inline View, a page holding old paragraphs grows longer to fit them; the pages aren't laid out again.
  • PowerPoint animations and transitions aren't shown. Embedded audio and video play only in formats VS Code can decode, which usually leaves out MP4 video. Some pasted vector pictures (EMF/WMF) appear as placeholders.
  • Markdown: Mermaid diagrams and math are shown as code. Pictures on the web load only over HTTPS. Raw HTML is limited to what is safe to show: no scripts, styles, forms or embedded frames.

Contributing

Bug reports and ideas are welcome in issues. See CONTRIBUTING.md to build and test the extension.

License

MIT. Third-party components and their licenses are listed in THIRD_PARTY_NOTICES.md.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft