Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Dialogue StatsNew to Visual Studio Code? Get it now.
Dialogue Stats

Dialogue Stats

Carlo V. Santiago

|
1 install
| (0) | Free
Word count and dialogue percentage for the active manuscript file, in the status bar. Thresholds and colors live in a sidebar panel.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Dialogue Stats

Word count and dialogue percentage for the file you are writing, in the VS Code status bar.

Words: 1,694  |  Dialogue: 34%

Status bar showing Words and Dialogue percent

The dialogue number changes color. Low, target, and high each get a color you choose.

Where to change things

Click the speech-bubble icon in the left Activity Bar. A panel opens with:

  • Live stats for the current file and a status bar preview
  • Two sliders for the low and high thresholds
  • Three color pickers
  • A toggle to show or hide the status bar item
  • A reset button

Every change saves at once. The same values also appear under Settings › Dialogue Stats.

Sidebar panel with sliders and color pickers

How it counts

  • YAML front matter at the top of the file is skipped.
  • Markdown headings and horizontal rules are skipped.
  • Dialogue is any text between double quotes. Straight " and curly “ ” both count.
  • Words are split on whitespace.
  • Dialogue % = dialogue words ÷ all body words, rounded to the nearest whole percent.

Em-dash dialogue with no quotation marks is not counted. Quoted signs, letters, and thoughts are counted.

Works on Markdown and plain text files by default. Change dialogueStats.languages to add more.

Command line

The counting core also runs on its own:

node out/cli.js chapter-01.md chapter-02.md
node out/cli.js --json chapter-01.md

Development

npm install
npm test            # compile + unit tests
npm run package:vsix

Press F5 in VS Code to launch an Extension Development Host.

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