Number Sum
A VS Code extension that automatically calculates the sum of numbers in selected text.

Features
- Automatically calculates the sum of numbers in selected text
- Updates every 3 seconds when text is selected
- Toggle auto-calculate feature with a single click
- Supports:
- Line-by-line number separation
- Ignores thousand separators (,)
- Extracts numbers from text containing other characters
Usage
- Select text containing numbers
- The sum will be automatically calculated and displayed in the status bar
- Click the "Auto" status bar item to toggle auto-calculate feature
- If auto-calculate is disabled, use the command palette (Cmd+Shift+P) and type "Calculate Number Sum"
Status Bar
- Shows the current sum of selected numbers
- Displays auto-calculate status:
- ✓ Auto: Auto-calculate is enabled
- ✕ Auto: Auto-calculate is disabled
- Click to toggle the feature
Settings
numberSum.autoCalculate : Enable/disable automatic calculation of number sums (default: true)
Examples
1,234
567
abc789def
Result: Sum: 2,590
Requirements
- VS Code version 1.98.0 or higher
Extension Settings
This extension contributes the following settings:
numberSum.autoCalculate : Enable/disable automatic calculation of number sums
Icon
The extension uses a custom icon that represents the number sum functionality. The icon is located in the images directory and is displayed in:
- VS Code marketplace
- Extension view
- Command palette
Known Issues
None at the moment.
Release Notes
0.0.2
- Added auto-calculate toggle in status bar
- Improved status bar display
- Added startup activation
0.0.1
Initial release of Number Sum:
- Basic number sum calculation
- Auto-calculate feature
- Status bar integration
- Settings support
License
This project is licensed under the MIT License - see the LICENSE file for details.
Following extension guidelines
Ensure that you've read through the extensions guidelines and follow the best practices for creating your extension.
Working with Markdown
You can author your README using Visual Studio Code. Here are some useful editor keyboard shortcuts:
- Split the editor (
Cmd+\ on macOS or Ctrl+\ on Windows and Linux).
- Toggle preview (
Shift+Cmd+V on macOS or Shift+Ctrl+V on Windows and Linux).
- Press
Ctrl+Space (Windows, Linux, macOS) to see a list of Markdown snippets.
Enjoy!
| |