Antigravity Document PreviewGoogle Antigravity's native Artifact Viewer styling, multi-format document studios (Markdown, MDX, Quarto, RMD, HTML, SVG, Mermaid, CSV/TSV, JSONL transcripts), theme-adaptive syntax highlighting, full-bleed PDF & HTML export, interactive carousels, and 60fps bidirectional scroll sync for VS Code, Cursor, Windsurf, and Antigravity IDE.
✨ OverviewAntigravity Document Preview (
🗂️ Multi-Format Studios (
|
| Format Family | Extensions | Studio Capabilities |
|---|---|---|
| Markdown & Variants | .md, .markdown, .mdx, .qmd, .rmd |
YAML frontmatter metadata card, Quarto {python} / {r} / {mermaid} executable code chunks & ::: {.callout-*} blocks, MDX import/export module cards & <Note> / <Tip> / <Warning> / <Caution> / <Callout> JSX components |
| HTML Documents | .html, .htm |
🌐 Web View (sandboxed live preview with local asset resolution, canvas background Auto/Light/Dark toggle, responsive viewport widths 100%/1024px/768px/390px, ↗ Browser launcher & scroll sync), ✨ Reader View (Antigravity typography), and </> Source view |
| Vector & Diagrams | .svg, .mmd, .mermaid |
Interactive pan/zoom Studio canvas (0.25x–8x), surface background switcher (Checkerboard grid, Theme, Light, Dark), dimension & node count badges, Copy SVG, Copy Data URI, fullscreen Lightbox, and collapsible syntax-highlighted source |
| Data Tables | .csv, .tsv |
RFC-4180 parser, sticky headers, live row filter search box, clickable sortable columns (▲/▼), numeric/boolean cell styling, row number gutter with data-line sync, Copy MD, and Copy CSV |
| JSONL & Agent Transcripts | .jsonl, .ndjson |
Auto-detects Antigravity Conversation Transcripts (step_index, source, type, content, thinking, tool_calls) vs generic JSONL datasets; renders role-colored step cards, role filter pills (All, 💬 User, 🤖 Planner, 🔧 Tools, ⚠️ Errors), live search, Expand All, and Copy JSON |
🎨 Full Syntax & Line Code Highlighting

- Active Theme Synergy & Live Syntax Palette: Code cells, table headers, inline code pills, and callout alerts dynamically blend with your active VS Code theme's workbench surfaces (
notebook.cellEditorBackground,sideBar.background) and automatically extractsemanticTokenColors&tokenColorsfrom your active editor theme (agyMarkdown.useThemePalette). - Okaidia Dark & Crisp Light Palettes: Comprehensive
.hljs-*(Highlight.js) and.token.*(Prism.js) token rules for Dark Mode, Light Mode, and PDF/Print export, including recursive highlighting for nested code fences inside```markdownblocks. - Semantic Sub-Token Enrichment & 65+ Language Aliases:
- Highlights function/method invocations,
PascalCasetypes/classes,self/cls/this/super,@decorators, Python/R keyword arguments, CUDA built-ins/qualifiers (__global__,threadIdx,atomicAdd), shell commands, CLI--flags, andENV_VAR=assignments. - Supports 65+ aliases (
cuda,cu,ptx,mojo,triton,pyspark,ts,tsx,sh,zsh,tf,hcl,toml,dotenv, SQL dialects, Diff blocks, ASCII directory trees) and auto-detects untagged code blocks.
- Highlights function/method invocations,
- Code Fence Metadata:
- Line Highlighting:
python {1,3-5}orpython hl_lines="1 3-5" - Filename Badge:
python title="src/attention.py" - Line Numbers:
python showLineNumbers(or globally viaagyMarkdown.codeLineNumbers)
- Line Highlighting:
```python {2,5-6} title="src/attention.py" showLineNumbers
import torch
@torch.compile(fullgraph=True)
class FlashAttentionBlock(nn.Module):
def forward(self, q: Tensor, k: Tensor, scale=0.125):
scores = torch.matmul(q, k.transpose(-2, -1)) * scale
return torch.softmax(scores, dim=-1)
```
🧩 Antigravity Artifact Components

- GitHub-Style Callout Alerts: Native rendering and SVG icons for
[!NOTE],[!TIP],[!IMPORTANT],[!WARNING], and[!CAUTION]. - Interactive Carousels: Multi-slide
````carouselblocks separated by<!-- slide -->HTML comments with keyboard and button navigation, nesting support for code blocks, tables, alerts, and images. - Offline Mermaid & KaTeX: Bundled
mermaid.min.jsdiagram rendering (with hover Zoom−/+,Copy SVG, and⛶ Expandfullscreen pan/zoom Lightbox) andkatex.min.cssmath typesetting ($...$and$$...$$). - Floating Document Outline (Table of Contents): Click Outline in the review toolbar to open a live-tracking Table of Contents that highlights the active section as you scroll and jumps smoothly on click.
- Interactive Task Checkboxes (
- [ ]↔- [x]): Click task checkboxes directly in the rendered Review canvas to toggle- [ ]/- [x]in the underlying.mdfile on disk (preserving VS Code Undo history). - 1-Click Table Export & Selection "Cite to Agent":
- Hover any table to copy it as GitHub Flavored Markdown (
Copy MD) or CSV (Copy CSV). - Select any text in the preview to reveal a floating
📎 Cite #Lstart-Lend/❝ Cite + Quotepill that copies a ready-to-paste[file.md#L12-L24](file:///abs/path/file.md#L12-L24)citation straight into your AI agent prompt.
- Hover any table to copy it as GitHub Flavored Markdown (
- Full-Bleed PDF & Standalone Interactive HTML Export: Export any Markdown file as a Themed (active VS Code theme palette) or Unthemed (clean white) vector PDF or single-file portable
.htmldocument (with embedded base64 images, interactive carousels, Mermaid zoom lightbox, and Outline drawer). - Workspace File & Session Links: Clickable
file:///absolute/path/to/file.py#L10-L25links that jump directly to the exact line range in your workspace, plusconversation://badge pills with 1-click UUID copy.
⇅ Split Edit & Smooth Bidirectional Scroll Sync

- 1-Click Split Edit: Click Split Edit in the top review toolbar to open or close the raw Markdown editor beside the preview at the exact line you are reading.
- Smooth Bidirectional Scroll Sync (Raw ↔ Preview):
- Raw → Preview: Frame-rate-independent
requestAnimationFrameexponential smoothing glides the preview to match the raw editor's scroll position. - Preview → Raw: User-input-gated scroll tracking updates the raw editor on line boundaries without feedback loops or trackpad momentum interruption.
- Instant Toggle: Toggle ⇅ Sync Scroll directly from the review toolbar at any time.
- Raw → Preview: Frame-rate-independent
⌨️ Commands
| Command ID | Title | Description |
|---|---|---|
agyMarkdown.openReview |
Antigravity: Open Document Preview | Open the current document in the Antigravity Document Preview editor |
agyMarkdown.openReviewBeside |
Antigravity: Open Document Preview to the Side | Open the Antigravity Document Preview editor in a side split |
agyMarkdown.exportPdf |
Antigravity: Export Document to PDF… | Choose between Themed PDF (active VS Code theme) and Unthemed PDF (clean print white) |
agyMarkdown.exportPdfThemed |
Antigravity: Export Document to PDF (Themed) | Export a full-bleed PDF preserving your active VS Code theme background, surfaces & syntax colors |
agyMarkdown.exportPdfUnthemed |
Antigravity: Export Document to PDF (Unthemed) | Export a print-friendly PDF with a crisp white background and high-contrast light syntax palette |
agyMarkdown.exportHtml |
Antigravity: Export Document to Standalone HTML… | Choose between Themed HTML (active VS Code theme) and Unthemed HTML (clean light) |
agyMarkdown.exportHtmlThemed |
Antigravity: Export Document to Standalone HTML (Themed) | Export a 100% self-contained interactive .html file with your active VS Code theme |
agyMarkdown.exportHtmlUnthemed |
Antigravity: Export Document to Standalone HTML (Unthemed) | Export a 100% self-contained interactive .html file with a clean light theme |
agyMarkdown.editSource |
Antigravity: Switch to Raw Source Editor | Toggle the side-by-side raw source editor |
agyMarkdown.toggleSyncScroll |
Antigravity: Toggle Synchronized Scrolling (Raw ↔ Preview) | Enable or disable bidirectional scroll sync |
agyMarkdown.openNativeArtifactViewer |
Antigravity: Open in Native Artifact Viewer | Open a brain artifact in Antigravity's native viewer |
agyMarkdown.syncMpeTheme |
Antigravity: Sync Style with Markdown Preview Enhanced | Sync Antigravity styles with ~/.local/state/crossnote/style.less |
agyMarkdown.openGitHub |
Antigravity: Open GitHub Repository | Open the GitHub repository in your browser |
agyMarkdown.reportIssue |
Antigravity: Report Issue on GitHub (with Diagnostics) | Open a pre-filled GitHub issue with extension, IDE, OS, and active theme diagnostics |
agyMarkdown.showTelemetryStats |
Antigravity: Show Extension Telemetry & Marketplace Stats | Inspect live VS Code Marketplace metrics (install vs downloadCount) and author telemetry exclusion status |
⚙️ Extension Settings
| Setting | Type | Default | Description |
|---|---|---|---|
agyMarkdown.syncScroll |
boolean |
true |
Synchronize scrolling between the raw Markdown editor and Antigravity Markdown Review in split edit mode. |
agyMarkdown.codeLineNumbers |
boolean |
false |
Display line numbers inside fenced code blocks by default (can also be enabled per block with showLineNumbers). |
agyMarkdown.useThemePalette |
boolean |
true |
Dynamically extract syntax highlighting colors (semanticTokenColors / tokenColors) and surface tints from the active VS Code color theme. |
agyMarkdown.syncMarkdownPreviewEnhanced |
boolean |
true |
Automatically apply the Antigravity style and parser extensions to Markdown Preview Enhanced (Crossnote). |
agyMarkdown.telemetry |
boolean |
true |
Send anonymous feature usage telemetry (respects VS Code's global telemetry.telemetryLevel and automatically excludes the extension author's development machine). |
📦 Local Installation & Packaging
# Package into a .vsix bundle for VS Code Marketplace / Open VSX
npm run package
# Or install directly into ~/.vscode/extensions
python3 install.py
