Aggregates numerical values within the selected range in the editor and displays them in real time on the status bar.
Features
Extracts numbers from the selected text in the editor and displays the aggregated values in the status bar.
You can also manually perform aggregation by selecting the command Aggregate Numbers in Selection from the command palette.
The aggregated values displayed in the status bar are:
Count, Sum, Average
Copying aggregation results to the clipboard:
Click the aggregation results in the status bar or select the command Copy Aggregation Results from the command palette.
The clipboard will contain the list of extracted numbers from the selection (aggregation targets) and the following values:
Count, Sum, Average, Median, Minimum, Maximum
Configurable conditions for real-time aggregation to prevent processing when large amounts of text are selected.
Settings
number-aggregator.aggregateOnlyIsolatedNumbers
Excludes numbers within words from aggregation. (Only numbers with spaces or line breaks before and after them are aggregated)
number-aggregator.decimalPlaces
Number of decimal places for aggregated values displayed in the status bar.
number-aggregator.icon
Icon displayed in the status bar.
number-aggregator.maxNumbers
Maximum number of numbers for real-time aggregation. When the number of extracted numbers exceeds this value, aggregation stops and values are no longer displayed in the status bar.
number-aggregator.maxSelectionLength
Maximum number of characters for real-time aggregation. When the selection length exceeds this value, aggregation stops and values are no longer displayed in the status bar.