This is a simple extension for Visual Studio Code and Cursor that displays the character count of your document in the status bar.
- Total Character Count: See the total number of characters in the current file, right in your status bar.
- Selection Count: When you select text, the status bar will update to show the number of selected characters alongside the total count.
- Real-time Updates: The count updates automatically as you type, edit, or change your selection.
There are no special requirements or dependencies for this extension.
Initial release of the Character Counter extension.
Instructions to package this project into a .vsix file.
- Prepare Your Environment (First Time Only) First, you need to install the necessary tools. You only need to do this once per machine.
# Install the VS Code extension packaging tool (vsce)
npm install -g vsce
# Install the TypeScript compiler
npm install -g typescript- Set Up the Project Navigate to the project's root directory (the one containing the package.json file) and install the required libraries.
# Navigate to the project's root directory
cd (path/to/your/project/folder)
# Install the necessary libraries
npm install- Package the Extension Once everything is set up, create the .vsix file with this command.
# Create the .vsix file
vsce packageIf successful, a file named [extension-name]-[version].vsix will be created in the project's root directory. 🎉
Enjoy!