Preview installs statistics
By Haixin Chen · VS Code Marketplace · Programming Languages
A Markdown, ReStructured Text, HTML, Jade, Pug, Mermaid, Image previewer.
Preview has 796,331 recorded installs on VS Code Marketplace, an increase of 0.6% over the past 30 days, ranking #631 of 2,515 tracked listings.
Rating: 3.20 / 5 from 40 ratings
About Preview
preview-vscode
A Previewer of Markdown, ReStructured Text, HTML, Jade, Pug, Mermaid files, Image's URI for Visual Studio Code
README
An extension to preview Markdown, ReStructured Text, HTML, Jade, Pug or Mermaid files or Image's URI while editing them in VSCode
The extension can be activated in two ways
- Toggle Preview
- Linux & Windows:
ctrl+shift+v - MAC:
cmd+shift+vorctrl+shift+v
- Linux & Windows:
- Open|Close Preview to the Side
- Linux & Windows:
ctrl+k v - MAC:
cmd+k vorctrl+k v
- Linux & Windows:
Just press the same key when you want to go back to the original view.
DETAIL
- If file type is Markdown, ReStructured Text, HTML, Jade, Pug or Mermaid
- Just do as the operation as mentioned.
- If file type is other
- Just click on a
- image URI (/http[s]{0,1}://|file://|\s[.]{0,2}//).
- for example: http://, https://, file://, /, ./
- css properities ({})
- for example: {color: blue}
- others as Markdown, ReStructured Text, HTML, Jade or Mermaid
- Just do as the operation as mentioned and a showQuickPick will pop up to show choices.
- image URI (/http[s]{0,1}://|file://|\s[.]{0,2}//).
- Just click on a
- With
markdown.rst.esbonio.enabled(off by default), reStructuredText files of a Sphinx project (aconf.pyin the directory of the file or above, up to the workspace folder) are previewed by Esbonio when it is installed and its language server is running, as it renders with Sphinx. Other files, or without Esbonio, are previewed by this extension. - Scripts in the previewed page, e.g.
<script>of an HTML file, only run when the preview security isDisable(Markdown: Change Preview Security Settings), do it only for files you trust. - Fenced code blocks of languages the built-in Markdown grammar doesn't know, e.g.
```desktop, are highlighted in the editor with the grammars of the installed extensions (e.g. Linux Desktop File support) (markdown.fenced-languages.enabled). The grammar is generated when the extensions change and takes effect after reloading the window, not in VS Code for the Web. How well it works depends on the grammar of the language, e.g. one anchored at the line start (^Name) doesn't highlight indented code blocks.
Contributing
-
Develop and debug
npm install npm run watch # or `npm run compile` once, then press F5 in VS Code to launch the Extension Development Host npm run lint npm test # npm run test:unit, builds, then compares the samples in test-workspace with test/snapshots UPDATE_SNAPSHOTS=1 npm run test:unit # rewrites the snapshots after an intended change, review them in git diff -
Layout
src/extension: extension entry, contributes the markdown-it plugins to the built-in Markdown preview.src/renders: markdown-it plugins, simple third-party plugins are configured insrc/renders/markdown-it-plugins.ts.src/preview: script loaded into the preview bymarkdown.previewScripts, renders Mermaid diagrams and the code copy button.src/notebook: notebook renderer, extendsvscode.markdown-it-renderer.syntaxes/markdown.tmLanguage.json: VS Code's builtin Markdown grammar, patched so indented lines are highlighted as Markdown rather than code, and front matter in Markdown code blocks is highlighted as YAML.syntaxes/shell.tmLanguage.json: VS Code's builtin shell grammar, used by shell code blocks in Markdown and patched so commands in list items are highlighted too.- Regenerate both with
npm run update-syntaxes [VS Code extensions directory](defaults to the latestmicrosoft/vscodemain, honorsHTTPS_PROXY, requires Node.js 24.5+), which also syncs the grammar contribution inpackage.json. package.nls*.json: translations of thepackage.jsoncontributions,l10n/bundle.l10n.*.json: translations of thevscode.l10n.tstrings, keyed by the English string.test-workspace: sample files to preview.test: renders the samples tracked by git like the preview with the bundled extension and a mockedvscode(test/extension.cjs), and tokenizes the Markdown samples with the grammars, compared with the snapshots intest/snapshots.
-
Notes
- The preview only runs scripts carrying its CSP nonce, so inline
<script>in rendered Markdown never runs with the default security settings, usesrc/previewinstead. With the preview securityDisable,src/preview/scripts.tsruns them, as VS Code inserts the content withDOMParser, which never runs scripts. - reStructuredText is rendered by
rst-compiler(src/renders/markdown-it-rst.ts), directives, roles and references it can't render fall back to their source or text, a document it still can't compile is shown as the error and its source.shikiis aliased tosrc/renders/util/shiki-stub.tsinwebpack.config.js,rst-compileronly reads its language list. - Every setting in
contributes.configurationreloads the markdown-it plugins when it changes. @types/vscodemust not be newer thanengines.vscode.
- The preview only runs scripts carrying its CSP nonce, so inline
-
Release: bump
versioninpackage.jsonand the[Unreleased]section ofCHANGELOG.md, commit, then push the tagv<version>..github/workflows/release.ymlpublishes it to the VS Code Marketplace and Open VSX and creates the GitHub release with the vsix, it needs the secretsVSCE_PATandOVSX_PATof thereleaseenvironment. Run it manually to publish a pre-release..github/workflows/ci.ymllints and packages every push and pull request. -
Package and publish manually to the VS Code Marketplace and Open VSX (used by VSCodium, Cursor, Gitpod, ...)…
Description from the VS Code Marketplace listing.
- css
- html
- jade
- keybindings
- markdown
- markdown-it
- mermaid
- MermaidFlowchart
- preview
- pug
- restructuredtext
- rst
README badge
Show your rank in a README or on your website. The badge updates automatically.
Charts
Images: 30d · 1y · all time · 1600×900 dark
Adoption over time
7/30/90-day growth
Ranking history
Ratings over time
Listing placement
Listing placement
Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.
Each band is one page of 20. Installs on a linear scale. Placement is projected from installs, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.
Recent observations
Full history (50)Similar VS Code Marketplace Programming Languages plugins
All 20 Preview alternativesData source
Install counts, average rating, and rating counts come from the public Visual Studio Marketplace gallery API. Installs are cumulative and exclude updates.
Listing: https://marketplace.visualstudio.com/items?itemName=searKing.preview-vscode. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.
