vscode-review-md-toggle

Markdown Auto Preview Toggle

A simple VS Code extension that provides a status bar button to toggle auto-preview mode for markdown files. See source code here

Install from VS Code Marketplace

Extension Demo

Quick demo showing the toggle functionality in action

Features

Auto-Preview Enabled
Status bar with auto-preview enabled
Auto-Preview Disabled
Status bar with auto-preview disabled

How It Works

The extension toggles the workbench.editorAssociations setting for *.md files between:

Usage

Installation

Option 1: VS Code Marketplace (Recommended)

  1. Open VS Code
  2. Go to Extensions (Ctrl+Shift+X)
  3. Search for “Markdown Auto Preview Toggle”
  4. Click Install

Option 2: Direct Link Install from Marketplace

Quick Start

  1. Look for the eye icon in the status bar (bottom right)
  2. Click the button to toggle between auto-preview enabled/disabled
  3. The icon and background will update to reflect the current state
  4. A notification will confirm the change

Alternative: Command Palette

Command Palette Usage

You can also use the command palette (Ctrl+Shift+P / Cmd+Shift+P) and search for “Toggle Markdown Auto Preview”.

Development

To run and test this extension:

  1. Open this folder in VS Code
  2. Press F5 to open a new Extension Development Host window
  3. In the new window, look for the eye icon in the status bar
  4. Open the included test-markdown.md file to test the functionality

Extension Settings

This extension modifies the following VS Code setting:

Commands

Troubleshooting:

  1. Why do I click and it doesn’t update the preview

    Verify that the settings.json for the workspace doesn’t contain the following settings:

{
     "workbench.editorAssociations": {
    "*.md": "vscode.markdown.preview.editor"
  },
}

If present, delete them.

Release Notes

0.0.1

Initial release with basic toggle functionality:


Following extension guidelines

Ensure that you’ve read through the extensions guidelines and follow the best practices for creating your extension.

Working with Markdown

You can author your README using Visual Studio Code. Here are some useful editor keyboard shortcuts:

For more information

Enjoy!