VSCode Character Counter
A Visual Studio Code extension that tracks and displays detailed statistics about your coding activity, including character, line, and word counts with file type breakdowns.
Features
- Real-time tracking of coding statistics
- Multi-dimensional metrics:
- Character count
- Line count
- Word count
- File type distribution
- Daily statistics persistence
- Configurable tracking options
- Status bar integration
- Detailed statistics panel
Installation
- Open VS Code
- Go to Extensions view (Ctrl+Shift+X)
- Search for "Character Counter"
- Click Install
Usage
Basic Usage
- The extension automatically tracks statistics when you save files
- Current counts are displayed in the status bar
Commands
Show Coding Statistics
: Open detailed statistics panel
Configuration
Configure tracking options in VS Code settings (JSON):
{
"charCounter.statisticsScope": "global",
"charCounter.trackLines": true,
"charCounter.trackWords": true,
"charCounter.trackFileTypes": true,
"charCounter.ignoredFileTypes": []
}
Extension Settings
Setting |
Description |
Default |
charCounter.statisticsScope |
Statistics collection scope (global or project ) |
global |
charCounter.trackLines |
Enable line count tracking |
true |
charCounter.trackWords |
Enable word count tracking |
true |
charCounter.trackFileTypes |
Enable file type tracking |
true |
charCounter.ignoredFileTypes |
File extensions to ignore |
[] |
Storage Configuration
Statistics Scope
- Global (default):
- Tracks activity across all projects
- Project:
- Useful for tracking individual project metrics
- Automatically switches when opening different projects
Storage Location
- Extension (default):
- Stores in extension global storage
- Project:
- Stores in project's
.vscode
folder
- Custom:
- Specify custom path in
charCounter.customStoragePath
Example Configurations
{
"charCounter.statisticsScope": "project",
"charCounter.storageLocation": "project"
}
{
"charCounter.statisticsScope": "global",
"charCounter.storageLocation": "custom",
"charCounter.customStoragePath": "/path/to/stats"
}
Known Issues
- Statistics are reset when VS Code is reloaded (but persisted between sessions)
- Large files may cause slight delays during save
Release Notes
1.0.0
Initial release with basic character counting
1.1.0
- Added line, word, and file type tracking
- Enhanced statistics display
- Configurable tracking options
- Status bar integration