Package Control

The official Sublime Text package manager.

mdview

mdview live preview for Sublime Text — type in Sublime, the mdview window updates as you type (no saving, no flicker). Requires the mdview desktop app.

By mdview2026
Created October 15, 2026, last updated October 21, 2026.

SepAugJulJunMayAprMarFebJan Dec2025 NovOct 2026-W43 | installs: 3 | removals: 1 | upgrades: 0 2026-W43 | installs: 3 | removals: 1 | upgrades: 0 2026-W43 | installs: 3 | removals: 1 | upgrades: 0 024 WeeklyInstalls 024 WeeklyUpgrades 2026-W43 | upgrades: 0 0.2.2 / 0.2.1 2026-W42 0.2.0
Installations: 3 in total
Installations minus removals
Upgrades

Links

Versions

0.2.2 (>ST4106) ·
2026-10-21 07:35

More
  • (>ST4106) 0.2.1 ·
    2026-10-20 11:15

  • 0.2.0 ·
    2026-10-15 03:33

mdview live preview for Sublime Text

Edit Markdown in Sublime Text and see it render in the mdview preview window as you type — no saving required. Uses the same line-level diff + in-place block patching as mdview's built-in F3 split editor, so the preview never flickers or reloads. Cursor, click and selection are synced both ways.

Live-push endpoints are a mdview Pro feature (the free/community build returns 404 and the plugin stays idle). Get mdview from mdview.top (international) or mdview.cn (Chinese).

Requires Sublime Text 4 (build 4107+) and a running mdview desktop app. No third-party Python dependencies.

Requirements

Installation

Option 1 (recommended): Package Control command palette → Package Control: Install Package → search for mdview.

Option 2 (manual): copy (or symlink) this whole directory into Sublime's Packages directory, named mdview:

Restart Sublime (or run sublime_plugin.reload_plugin) to activate.

Usage

  1. Right-click the editing area → Preview in mdview (or Command Palette mdview: Preview Current File) to open/focus the preview window — the context-menu entry only appears in Markdown views and stays out of the way for other file types;
  2. Just type — edits are pushed as you go (one frame every 300 ms during continuous typing) and the preview updates automatically;
  3. Saving (Ctrl+S) does not trigger a full reload: mdview recognizes the pushed-content echo and handles it silently.

mdview not installed?

If mdview is not detected when you run the preview command, the plugin asks whether to open the official download page. Install the Pro edition (live push is a Pro feature), then run the preview command again.

The download page is routed by channel: Chinese OS UI language → CN build (mdview.cn), otherwise → international build (mdview.top). The two builds have fully independent config/payment/update channels; if the routing guesses wrong, override it with the channel setting.

Position sync (two-way)

Disable with sync_cursor in the settings.

How it works

Settings

Preferences → Package Settings → mdview → Settings, or Command Palette Preferences: mdview Settings (split view: left = read-only defaults, right = your overrides):

Key Default Description
mdview_path "" Path to the mdview executable; empty = auto-detect (on Windows: .md file association first, then registry InstallDir, common install dirs and PATH)
debounce_ms 300 Push throttle interval in ms (frame interval during continuous typing)
enabled true Master switch for live push
sync_cursor true Master switch for cursor/click/selection position sync
channel "auto" mdview download channel: auto = Chinese OS UI language → CN build, otherwise → international build; force with cn / intl
debug_log false Troubleshooting: write detailed push/cursor/selection sync logs to <live dir>/plugin-debug.log

Known limits


mdview Sublime Text 插件(中文说明)

在 Sublime Text 中编辑 Markdown,mdview 预览窗口边输入边无感刷新—— 无需保存文件,效果与 mdview 内置 F3 分屏编辑一致(行级 diff + 原位换块,不整页刷新)。

实时推送端点为 mdview Pro 功能(社区版返回 404,插件静默待机)。

依赖

安装

方式一(推荐):Package Control 命令面板 → Package Control: Install Package → 搜索 mdview。

方式二(手动):把整个目录复制(或建符号链接)到 Sublime 的 Packages 目录并命名为 mdview:

rem Windows 示例(管理员或开发者模式可用符号链接)
mklink /D "%APPDATA%\Sublime Text\Packages\mdview" "E:\Study\markdown\mdview\sublime"

重启 Sublime(或 sublime_plugin.reload_plugin)后生效。

使用

  1. 右键编辑区 → Preview in mdview(或命令面板 mdview: Preview Current File) 打开/唤起预览窗口——右键项只在 Markdown 视图出现,其它文件类型不占位置;
  2. 正常编辑即可——输入即推(连续输入时每 300ms 出一帧),预览自动更新;
  3. 保存(Ctrl+S)不会触发整页刷新:mdview 识别「推送内容落盘」回声,静默处理。

本机没装 mdview?

执行预览命令时若未检测到 mdview,插件会提示「本插件依赖 mdview 进行实时预览, 需要从 mdview 官网下载安装 mdview,是否继续?」——确认后打开官网下载页, 自行下载安装 Pro 版(实时推送是 Pro 功能);装好后再次执行预览命令即可联动。

下载页自动分流:OS 界面语言为中文 → 国内版(mdview.cn),否则 → 国际版 (mdview.top)。两版配置/付费/更新通道完全独立,打开的版本不对可在设置里用 channel 手动指定。

位置同步(双向)

可在设置中用 sync_cursor 关闭。

工作原理

设置

Preferences → Package Settings → mdview → Settings,或命令面板 Preferences: mdview Settings(左右分屏:左=默认值只读,右=用户覆盖):

键 默认 说明
mdview_path "" mdview 可执行文件路径,留空自动探测(Windows 优先取 .md 文件关联的打开方式,再走注册表 InstallDir、常见安装目录与 PATH)
debounce_ms 300 推送节流间隔(连续输入期间的出帧间隔)
enabled true 实时推送总开关
sync_cursor true 光标/点击/选区位置同步总开关
channel "auto" mdview 下载通道:auto = OS 界面语言中文装国内版、其余装国际版;可强制 cn / intl
debug_log false 排查用:往 <live 目录>/plugin-debug.log 写推送/光标/选区同步详细日志

已知边界

Results

Packages