MarkCopy

Open any file in VS Code as the real thing.
Repositories hold far more than code: notes and specs in Markdown, data in CSV and Excel, reports in Word, decks in PowerPoint, PDFs and LaTeX, screenshots and screen recordings, audio, 3D models and print files, and the executables and installers a project builds or ships. VS Code shows most of them as raw text, as "binary", or not at all, and getting one to a colleague who lives in Word or Gmail means a detour through other apps.
MarkCopy opens each one as what it is, inside the editor, safely, and lets you work with it:
- Read. A rendered page, a spreadsheet grid, a slide deck, a PDF with selectable text, a playable video, a model you can orbit. Click a Markdown block or a CSV cell to change it in place. Every change is an ordinary edit to the file, so Ctrl+Z undoes it. Nothing else to install for most formats.
- Review. Leave timecoded notes on a video or an audio file, notes pinned to a point or an area of an image, and comments on a PDF. They are kept in a plain file beside the original, so they travel with the repository.
- Inspect. See what an executable, package or installer is before you trust it: its version, signer, architecture, protections, dependencies, which install scripts it carries, and its SHA-256. It is read as bytes only, never run or installed.
- Hand it off. Right-click anything to copy it in the format the destination wants: rich text that keeps its formatting in Word, Outlook, Gmail and Google Docs, a table as CSV, a diagram or video frame as PNG. Or save the whole document as PDF, Word, or PowerPoint, with real headings, lists and alt text so the result stays accessible.

Install
Search MarkCopy in the Extensions view, or run code --install-extension OwenPKent.markcopy. Cursor, VSCodium and Windsurf users can install it from Open VSX.
Then open a Markdown or CSV file: its tab shows the rendered preview, and Show Source in the title bar swaps back to the text. Right-click inside the preview to see what you can copy. More in Getting started.
What it opens
| Format |
Files |
Highlights |
| Markdown |
.md, .markdown, .mdx, and friends |
GitHub styling, Mermaid, KaTeX math, footnotes, edit blocks in place, export to PDF/Word/PPTX, a notice for hidden Unicode |
| CSV and TSV |
.csv, .tsv, .tab |
A real grid with frozen headers; edit cells, insert and delete rows and columns |
| Excel |
.xlsx, .xlsm |
Sheet tabs, formatted values, merged cells; copy a sheet as rich text, Markdown, CSV, or TSV |
| Word |
.docx, .docm |
Structured, readable text with lists, tables, footnotes, comments, and charts as tables |
| PowerPoint |
.pptx, .pptm |
The whole deck in one scrollable column, ready to copy or re-export |
| PDF |
.pdf |
Selectable text, pinned comments, copy a page as PNG |
| LaTeX |
.tex, .ltx, .latex |
Compiled with your installed TeX engine and shown in the PDF viewer |
| Images and GIFs |
.png, .jpg, .webp, .avif, .bmp, .ico, .svg, .gif |
Copy as PNG, Markdown, or HTML; step through a folder; pin notes to areas of a picture; play, pause and scrub a GIF on its control bar, and step through its frames |
| Video |
.mov, .mp4, .mkv, .webm, and more |
Plays inline with its own controls (play, volume, a seek bar that previews the frame under the pointer, with the time and time left, full screen); timecoded video notes; copy the current frame as PNG for a bug report |
| Audio |
.mp3, .wav, .ogg, .opus, .flac, .m4a, .aac |
Plays inline with a click-to-seek waveform, a details panel (codec, levels, tags), speed control and keyboard shortcuts; timestamped notes; step through the audio files in a folder |
| 3D models |
.stl, .3mf, .glb, .step, .stp, .gcode, .gco, .obj |
3D viewer with orbit, wireframe, dimensions, a print bed, sections with measuring, compare, a parts and assembly tree with show and hide, 3MF, GLB, STEP and OBJ colors, and toolpaths for sliced prints and plain G-code with nozzle playback |
| Executables |
.exe, .dll, .sys, .ocx, .scr, .cpl, .efi |
Read-only metadata page: version info, SHA-256, signer, architecture, protections, imports and exports; after a Read this file click, in an isolated worker; the file is never run |
| Packages and installers |
.deb, .rpm, .msi, .dmg, .pkg, .apk, .jar, .vsix, .whl, .nupkg, .so, .dylib, .AppImage, .7z, .rar, .gpg, .age, .kdbx, .p12, and more |
Read-only info page: name, version, publisher, dependencies, scripts that exist, file list, protections, SHA-256 and signer; after a Read this file click, in an isolated worker; the file is never installed or run |
Safe by design
Opening an executable or an installer never runs it. Previews of other people's files (Word, PowerPoint, Excel, PDF, executables, packages) are read-only and need no Office install. An executable or a package is only read as bytes, never run or installed, and only when you ask: opening one shows its name and size and a Read this file button (the markcopy.fileInfo.confirm setting turns that off), and the reading happens in a worker with a memory and a time limit rather than in the extension host.
Previews work in VS Code's Restricted Mode. Compiling LaTeX and the external media and PDF tools (ffmpeg, a Chromium browser) need a trusted workspace. Remote images are off by default, including in PDF exports. By default the LaTeX preview asks before running your installed TeX engine in each new preview; setting markcopy.tex.compile to auto compiles without asking, and off never compiles. See Settings and SECURITY.
Why rich copy matters
Copy from an ordinary Markdown preview and the clipboard holds only plain text, so Word, Outlook, Gmail and Google Docs paste # heading *asterisks*. Those apps render formatting only when it arrives as HTML. MarkCopy writes both HTML and plain text, with styles inlined so the formatting survives even Gmail and Outlook, which strip style sheets. Headings, bold, lists, tables, links and code arrive intact.
Light and dark
The preview follows your VS Code theme with GitHub-light and GitHub-dark palettes.

Documentation
Using MarkCopy: the user guide covers each format, copying, exporting, and settings and commands. The copy matrix lists every right-click action and exactly what it puts on the clipboard.
Developing MarkCopy: start with Contributing, then Architecture and Testing. Security reports go through SECURITY. Release notes are in the changelog.
Roadmap
- PlantUML support.
- An "email-safe" export profile (table-based layout, fully inlined).
- More static detail in the executable and package previews: entropy per section, import hash, Rich header, signature timestamps and warnings for odd layouts. See the binary viewer prior art.
License
MIT
The 3D preview reads STEP files with occt-import-js (LGPL-2.1), which is Open CASCADE Technology (LGPL-2.1 with the OCCT exception) compiled to WebAssembly. The WebAssembly engine ships unmodified (gzipped) as the separate file media/occt-import-js.wasm.gz with its license texts (media/license.occt-import-js.txt, media/license.occt.txt) beside it, so it can be replaced with a rebuilt copy. Its JavaScript glue is bundled into media/stl.js with one change, made at build time by scripts/occt-no-eval.js: two embind helpers that build functions from strings are replaced with equivalent closures, so the viewer's Content Security Policy needs no 'unsafe-eval'.
| |