Word Count Enhanced (wordcount-selection)Practical, lightweight word counting for any (text-based) file in VS Code. Shows both:
If you only want a quick, unobtrusive word count that also helps when editing snippets or measuring selected paragraphs across any language / file type, this extension is for you. Features
How Counting WorksWords are determined by collapsing consecutive whitespace and splitting on a single space. HTML-like angle bracket fragments Edge cases:
Why Another Word Count Extension?Most existing extensions either target Markdown only or don’t provide quick selection counts across any file. This fork started from Microsoft’s sample and evolved into a focused utility extension: accurate enough for drafting and editing, minimal overhead, and works everywhere. InstallationInstall from the VS Code Marketplace: No configuration is required. PerformanceCounting runs on basic events (editor activation & selection changes). For huge files a guard prevents excessive memory/CPU usage. If you routinely work with very large generated sources, you can open an issue to discuss smarter streaming strategies. Roadmap / Ideas
AttributionDerived from the original MIT-licensed sample at DisclaimerProvided "AS IS" under the MIT License. Word counts are heuristic; may be inaccurate for minified, generated, binary-like, or extremely large files. No data leaves your machine. Not for safety-critical use. |