Overview Version History Q & A Rating & Review
Advanced Markdown Live Preview
A VS Code extension that provides a side-by-side Markdown preview with inverted theme support. Automatically adapts the preview theme based on your editor theme - dark editor shows light preview, light editor shows dark preview.
Features
📝 Side-by-side Markdown preview
🎨 Inverted theme support (dark editor → light preview, light editor → dark preview)
⚡ Real-time preview updates
⌨️ Keyboard shortcuts for quick access
🎯 Editor toolbar integration
Usage
Open any Markdown file (.md)
Press Ctrl+Shift+M (or Cmd+Shift+M on Mac) to open the preview
Or click the preview icon in the editor toolbar
The preview will automatically update as you edit
Keyboard Shortcuts
Ctrl+Shift+M (Mac: Cmd+Shift+M) - Open/Show Preview
Publishing to VS Code Marketplace
Prerequisites
Azure DevOps Account : You need a free Azure DevOps account
Publisher Account : Create a publisher on VS Code Marketplace
Steps to Publish
Get Personal Access Token (PAT) :
Go to Azure DevOps: https://dev.azure.com
Click on User Settings → Personal Access Tokens
Create new token with:
Name: "VS Code Extension Publishing"
Organization: All accessible organizations
Expiration: Set as needed
Scopes: Select "Marketplace (Manage)"
Package the Extension :
npm run compile
vsce package
This creates a .vsix file
Publish the Extension :
vsce publish
When prompted, enter your Personal Access Token (PAT)
Or publish the .vsix file directly:
vsce publish -p <YOUR_PERSONAL_ACCESS_TOKEN>
Update Extension (for future versions):
Update version in package.json
Run vsce package and vsce publish again
Alternative: Publish via Web UI
Go to https://marketplace.visualstudio.com/manage
Select your publisher
Click "New extension" → "Visual Studio Code"
Upload the .vsix file
Installation (After Publishing)
Users can install your extension via:
VS Code: Search for "Advanced Markdown Live Preview" in Extensions view
Command: code --install-extension ahmadushay.advanced-markdown-preview
VSIX file: code --install-extension path/to/extension.vsix
Development
# Install dependencies
npm install
# Compile TypeScript
npm run compile
# Watch mode (auto-compile on changes)
npm run watch
# Package extension
vsce package
License
MIT License - See LICENSE file for details