Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>MDX Word CountNew to Visual Studio Code? Get it now.
MDX Word Count

MDX Word Count

Daniel Hails

| (0) | Free
Status-bar word count for MDX prose, ignoring frontmatter, imports, JSX, code and maths.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

MDX Word Count

VS Code status-bar word count for .mdx/.md prose. Ignores frontmatter, imports/exports, JSX tags, comments, code, maths and footnotes. Shows selected / total words when text is selected; hover for reading time at 250 wpm.

Install from the Marketplace: code --install-extension DJRHails.mdx-wordcount. For local development, ln -sfn "$PWD" ~/.vscode/extensions/DJRHails.mdx-wordcount, then Developer: Reload Window.

Test: node test.mjs

Releases are continuous: a push to main with a new version in package.json publishes it to the Marketplace and as a GitHub release (.github/workflows/release.yml).

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