VS Code Extensions
C

Copy Markdown as Rich Text

by SebastianSafari

Converts selected markdown text to rich text and copies it to the clipboard so it can be pasted as formatted text into applications like Google Docs, Word, etc.

Downloads

227

Rating

— (0)

Version

0.0.1

Last updated

May 07, 2026

A VSCode extension that converts selected markdown text to rich text and copies it to the clipboard so it can be pasted as formatted text into applications like Google Docs, Word, etc.

Sorry, this is a vibe-coded app. I just wanted the feature 🤷‍♀️

Demo

Showing regular copy & paste, and the new copy as rich text & paste

demo-video-v0.0.1

Install

Usage

  1. Open a Markdown file (or any document with markdown content).
  2. Optionally select a range — if nothing is selected the whole file is converted.
  3. Run Markdown: Copy as Rich Text by:
    • Pressing Ctrl+Shift+C (Windows/Linux) / Cmd+Shift+C (macOS), or
    • Right-clicking and choosing Markdown: Copy as Rich Text, or
    • Running it from the Command Palette (Ctrl+Shift+P).
  4. Paste into your destination app (Google Docs, Word, Outlook, Slack, etc.).

The keybinding and context menu entry are scoped to markdown files only.

Settings

  • copyMarkdownRichText.includeStyles — include inline CSS in the copied HTML (default: true).
  • copyMarkdownRichText.highlightCode — syntax-highlight fenced code blocks (default: true).

Platform notes

  • Windows / macOS: works out of the box (uses built-in PowerShell / osascript).
  • Linux: requires wl-clipboard on Wayland (sudo apt install wl-clipboard) or xclip on X11 (sudo apt install xclip). The extension picks one automatically based on $WAYLAND_DISPLAY. Without either, it falls back to copying the raw HTML as plain text and shows a warning.

Building

Local

  • npm install
  • npm watch
    • Then, hit F5 to debug.

Publishing

  • Confirm everything is working & compiles
  • Update version in package.json (e.g. "0.0.3")
  • vsce package
  • export v='v0.0.4'; git add -A; git commit -m "$v release"; git push; git tag $v; git push origin $v;
    • PS: $v = "v0.0.4"; git add -A; git commit -m "$v release"; git push; git tag $v; git push origin $v
  • Github Actions are configured to build & publish when a new tag is created, so on sucess it will auto publish
    • These use auth token repo secrets to push to both extension galleries.

LICENSE

Apache v2

Related extensions