DEV Community

Jehadur Rahman Emran
Jehadur Rahman Emran

Posted on

Markdown in VS Code to a styled Google Doc, in one shortcut

I often write in Markdown and still need a document that looks at home in Google Docs — headings, tables, code blocks, a table of contents — without restyling the paste by hand.

md2gdocs is a VS Code extension I publish as JehadurRE.markdown-to-google-docs. The current Marketplace version is 1.2.0. On 30 November 2026 the public listing showed 95 installs, 194 downloads, and a weighted rating of about 4.4.

The 15-second path

  1. Open a .md file in VS Code.
  2. Press Ctrl+Alt+G (Windows/Linux) or Cmd+Alt+G (macOS). That is the "Copy for Google Docs" command.
  3. Open a document (for example docs.new) and paste.

The extension inlines styles that Google Docs' paste parser can keep, so you are not pasting a bare code-font blob.

If you want a preview first

Ctrl+Alt+P / Cmd+Alt+P opens a side-by-side preview. You can switch themes, check page breaks, and then copy, export a PDF, or export Word from the toolbar.

There is also a command to upload the result to Google Drive as a native Google Doc (OAuth on first use). Tokens are stored in VS Code SecretStorage, not in a random file. Conversion itself runs locally.

Other facts from the listing, not marketing filler

  • Six named themes (Modern Corporate, Executive Navy, Emerald Mint, Crimson Elegant, Minimalist Monochrome, Tech Violet).
  • YAML frontmatter for title, theme, running header/footer, page numbers, watermark, and table of contents.
  • A built-in .docx viewer and PDF export, documented on the Marketplace page.

I am not going to claim every Markdown feature in the wild survives the paste. If a construct you use comes out wrong, an issue on JehadurRE/markdown-to-google-docs with a sample file is the most useful report.

Top comments (0)