Skip to content
| Marketplace
Sign in
Visual Studio Code>Formatters>Number SumNew to Visual Studio Code? Get it now.
Number Sum

Number Sum

임광훈

|
33 installs
| (0) | Free
Calculate the sum of numbers in selected text
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Number Sum

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

Number Sum Icon

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

  1. Select text containing numbers
  2. The sum will be automatically calculated and displayed in the status bar
  3. Click the "Auto" status bar item to toggle auto-calculate feature
  4. 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.

  • Extension Guidelines

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.

For more information

  • Visual Studio Code's Markdown Support
  • Markdown Syntax Reference

Enjoy!

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft