Markdown to Google Docs (
|
| Command | Windows / Linux | macOS | Description |
|---|---|---|---|
| Copy for Google Docs | Ctrl + Alt + G | Cmd + Alt + G | Copies rich formatted HTML to clipboard for direct paste into Google Docs. |
| Show Live Preview | Ctrl + Alt + P | Cmd + Alt + P | Opens side-by-side interactive Google Docs preview. |
| Export PDF | Ctrl + Alt + D | Cmd + Alt + D | Generates and saves a publication-grade PDF file. |
⚡ Quick Start Workflows
1. 1-Click Clipboard Mode (Zero Configuration)
- Open any Markdown (
.md) file in VS Code. - Press Ctrl + Alt + G (or click "Copy for GDocs" in the status bar).
- Open a document at docs.new and press Ctrl + V (Cmd + V).
- All styles, tables, callouts, and bookmarks are pasted instantly!
2. Live Side-by-Side Preview
- Press Ctrl + Alt + P or click the preview icon in the editor title bar.
- Switch themes in real-time, inspect page breaks, review reading time, and test bookmark links.
- Click toolbar buttons for 1-click copy, Google Drive upload, PDF export, or Word export.
3. Built-in Word & PDF Viewers
- Click on any
.docxor.pdffile in your VS Code Explorer. - The extension automatically opens it in the built-in reader:
- Word DOCX Viewer: Formatted Google Docs view with responsive zoom (
+/−), Dark/Light mode, word count, print, and copy. - PDF Document Viewer: High-DPI hardware-accelerated viewer with continuous scrolling, page jump, rotate ↷ 90°, night mode inversion, and 100% offline PDF.js rendering.
- Word DOCX Viewer: Formatted Google Docs view with responsive zoom (
- Automatically opens newly generated PDFs right after export!
4. Cloud Sync to Google Drive
- Press
Ctrl+Shift+Pand choose:Markdown to Google Docs: Upload to Google Docs (Cloud Sync) - On first run, authenticate via the secure loopback OAuth 2.0 flow.
- The document uploads directly to Google Drive as a native Google Doc and opens in your browser.
📋 YAML Frontmatter Specification
You can customize document behavior per-file using YAML frontmatter:
---
title: "Quarterly Engineering Strategy"
subtitle: "Cloud Infrastructure & Documentation Standard"
author: "Jehadur RE"
date: "2026-09-03"
version: "2.5"
status: "APPROVED"
theme: "modern-corporate"
header: "ACME CORP • ENGINEERING STRATEGY"
footer: "Strictly Confidential • All Rights Reserved"
page_numbers: true
show_stats: true
watermark: "CONFIDENTIAL"
toc: true
toc_depth: 3
zebra_stripes: true
tags: [architecture, cloud, performance]
---
| Property | Type | Description |
|---|---|---|
title |
string |
Document title (renders in Executive Header Card). |
subtitle |
string |
Secondary descriptive headline. |
author / authors |
string / string[] |
Author name(s). |
date |
string |
Publication or revision date. |
version |
string |
Document version string (e.g. "1.0"). |
status |
string |
Status badge (e.g. "DRAFT", "REVIEW", "APPROVED"). |
theme |
string |
Theme override (modern-corporate, executive-navy, emerald-mint, crimson-elegant, minimalist-mono, tech-violet). |
header |
string |
Running header text for document and PDF pages. |
footer |
string |
Running footer text for document and PDF pages. |
page_numbers |
boolean |
Enable dynamic "Page X of Y" pagination. |
show_stats |
boolean |
Display word count and estimated reading time badge. |
watermark |
string |
Angled translucent watermark overlay (e.g. "CONFIDENTIAL", "DRAFT"). |
toc |
boolean |
Enable or disable Table of Contents generation. |
toc_depth |
number |
Maximum heading level in Table of Contents (1 to 6). |
tags |
string[] |
Hashtag pills displayed in the header card. |
⚙️ Configuration Settings
Customize default extension behavior in VS Code Settings (Ctrl+, -> search md2gdocs):
| Setting | Default | Description |
|---|---|---|
md2gdocs.defaultTheme |
"modern-corporate" |
Default theme for Google Docs, HTML, and DOCX exports. |
md2gdocs.fontFamily |
"Inter, Roboto, sans-serif" |
Body typography font family. |
md2gdocs.includeTableOfContents |
true |
Automatically generate a styled Table of Contents. |
md2gdocs.tableZebraStriping |
true |
Alternating row backgrounds on data tables. |
md2gdocs.codeBlockTheme |
"github-light" |
Syntax highlighting color scheme. |
md2gdocs.headerText |
"" |
Default running header text for pages. |
md2gdocs.footerText |
"" |
Default running footer text for pages. |
md2gdocs.showPageNumbers |
true |
Display page numbers in headers, footers, and PDF exports. |
md2gdocs.showStats |
true |
Display reading time and word count. |
md2gdocs.watermark |
"" |
Default translucent watermark text. |
md2gdocs.googleClientId |
"" |
Custom Google Cloud OAuth 2.0 Client ID (optional). |
md2gdocs.googleClientSecret |
"" |
Custom Google Cloud OAuth 2.0 Client Secret (optional). |
md2gdocs.googleDriveFolderId |
"" |
Target Google Drive folder ID (defaults to root). |
md2gdocs.openAfterUpload |
true |
Automatically open the Google Doc in your browser after upload. |
🔒 Security & Privacy
- Local Execution: All parsing, style inlining, and conversions run 100% locally on your machine.
- Secure Token Storage: Google OAuth tokens are stored in your operating system's native encrypted credential store via the VS Code
SecretStorageAPI (Windows Credential Manager, macOS Keychain, Linux Secret Service). - Strict Webview CSP: The live preview webview enforces strict Content Security Policy directives prohibiting untrusted remote code execution.
👤 Author & Support
Jehadur Rahman (JehadurRE)
- Marketplace: JehadurRE.markdown-to-google-docs
- GitHub: @JehadurRE
- Issues & Feedback: GitHub Issues
- Email: emran.jehadur+ch@gmail.com
📄 License
MIT License © 2026 Jehadur Rahman (JehadurRE)