Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>VitePress PR HelperNew to Visual Studio Code? Get it now.
VitePress PR Helper

VitePress PR Helper

Pason

|
8 installs
| (1) | Free
Edit VitePress documentation with live preview and one-click PR to GitHub
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

VitePress PR Helper

A VS Code extension that helps you edit VitePress documentation with live preview and seamless GitHub PR workflow.

Features

  • Live VitePress Preview: Real-time preview with bidirectional scroll sync
  • One-Click Sync: Sync with upstream repository with a single command
  • Easy PR Creation: Create pull requests directly from VS Code using GitHub CLI
  • Document Tree View: Browse and manage Markdown files in the sidebar
  • Smart Navigation: Click links in preview to open corresponding source files

Requirements

  • VitePress: Must be installed in your documentation repository
  • GitHub CLI (gh): Required for creating pull requests
    • Install from cli.github.com
    • Run gh auth login to authenticate

Extension Settings

  • wikiPreviewPR.docsRoot: Documentation root directory (default: "docs")
  • wikiPreviewPR.upstreamRepo: Upstream GitHub repository (format: owner/repo)
  • wikiPreviewPR.upstreamBranch: Upstream branch to sync from (default: "main")
  • wikiPreviewPR.autoSaveBeforePreview: Auto-save files before refreshing preview (default: true)
  • wikiPreviewPR.followActiveMarkdown: Update preview when switching between Markdown files (default: true)

Usage

Opening Preview

  1. Open a Markdown file in your docs folder
  2. Click the preview icon in the editor toolbar
  3. Or use command: VitePress: Open Preview

Syncing with Upstream

  1. Run command: VitePress: Sync Upstream
  2. The extension will fetch and merge changes from the upstream repository

Creating a Pull Request

  1. Make your changes and save
  2. Run command: VitePress: Create Pull Request
  3. Follow the prompts to commit (if needed) and create the PR
  4. The PR will open in your browser

Development

# Install dependencies
npm install

# Compile extension
npm run compile

# Watch for changes
npm run watch

# Package extension
npm run package

License

MIT

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft