Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Codex Manuscript WordcountNew to Visual Studio Code? Get it now.
Codex Manuscript Wordcount

Codex Manuscript Wordcount

Zen Brewism Books

|
185 installs
| (0) | Free
Show manuscript and session word counts and goals.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Codex Manuscript Wordcount

A VScode extension for counting the total word count of a manuscript split across multiple files. It also includes a session word count and configurable manuscript and session goals.

Features

  • Configurable document root
  • Session word count
  • Manuscript word count
  • Configurable manuscript and session goals
  • Does not count words between < and >
  • Progress bars for manuscript and session goals
  • Ignores files matching patterns in .codexignore file.
  • Choose one or more file globs.

Installation

Search for codex-manuscipt-wordcount in the VScode extension marketplace and install it.

Usage

After installation, the manuscript and session word counts will appear in the explorer. You can right-click on them to set the manuscript and session goals, as well as the document root where the manuscript is located. The extension will only count the words for Markdown documents under the document root.

You can also reset the session or adjust the session count by right-clicking on the session count. Additionally, there is an option in the settings to automatically reset the session on restart, which is off by default.

By default, the extension only counts markdown files ending in .md, this is controlled by the Glob Patterns configuration item. Multiple globs can be added to this list. The globs should be in the form *.ext. In some cases the glob is prepended with **/. Although more complex patterns should work, they are untested.

All of these settings are stored in the workspace config, and you can edit them there. However, there is no validation when editing them manually, so it may cause issues.

You may create a .codexignore file in the root of your workspace in the same format used by .gitignore, and the word counter will ignore any files which match the ignore patterns.

In general, each pattern should be **/<directory>/**. One pattern per line. Lines beginning with #, are considered comments and ignored.

Limitations

  • Changing the document root while in the middle of a session may cause the session count to become inaccurate.
  • Only supports workspaces with one root.

Related

  • Codex Autocommit - Automatically takes a snapshot of the manuscript every interval and stores it on a remote git server.

  • Codex Manuscript File Operations - A set of file operations to facilitate splitting and merging scenes and to maintaining the fileorder of the manuscript.

Feedback

Bugs, feature requests and comments

License, Author and Logo Attribution

  • Author: @nephlm
  • License: MIT
  • Logo by Delapuite under CC BY 3.0
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft