NumberFormatter
Format numbers with decimal and thousands separators
Details
Installs
- Total 523
- Win 305
- Mac 173
- Linux 45
| Nov 1 | Oct 31 | Oct 30 | Oct 29 | Oct 28 | Oct 27 | Oct 26 | Oct 25 | Oct 24 | Oct 23 | Oct 22 | Oct 21 | Oct 20 | Oct 19 | Oct 18 | Oct 17 | Oct 16 | Oct 15 | Oct 14 | Oct 13 | Oct 12 | Oct 11 | Oct 10 | Oct 9 | Oct 8 | Oct 7 | Oct 6 | Oct 5 | Oct 4 | Oct 3 | Oct 2 | Oct 1 | Sep 30 | Sep 29 | Sep 28 | Sep 27 | Sep 26 | Sep 25 | Sep 24 | Sep 23 | Sep 22 | Sep 21 | Sep 20 | Sep 19 | Sep 18 | Sep 17 | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Windows | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
| Mac | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
| Linux | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Readme
- Source
- raw.githubusercontent.com
NumberFormatter - A Sublime Text Plugin
This Sublime Text plugin formats plain numbers by adding a thousands separator to them. It also unformats them in reverse. See the Features section below for details.
Installation
- Package Control
- Install Package Control
- Bring up the Command Palette and type “Package Control: Install Package”
- Type “NumberFormatter” and press enter
- Directly
- Locate the
Packagesfolder in the data directory - Download the latest version of NumberFormatter
- Extract the archive into the
Packagesfolder
- Locate the
- Development
Usage
- Linux: ctrlshiftcomma
- macOS: commandshiftcomma
- Windows: ctrlshiftcomma
Features:
As long as the number is partially or fully selected, or while the cursor is on the number, this plugin will format or unformat it in the following way:
| Before | After |
|---|---|
12345 |
12,345 |
12,345 |
12345 |
12345.67 |
12,345.67 |
12,345.67 |
12345.67 |
This plugin supports multiple cursors and multiple selections. It can process both formatted and unformatted numbers in one go.
Options
To change the settings, simply edit the NumberFormatter.sublime-settings file that's included with the plugin:
decimal_separator- the character that separates between whole and decimal numbersthousands_separator- the character that groups numbers in the thousands, millions, billions, etc.format_thousands- whether or not to add a thousands separator to numbers between 1000 and 9999
Warnings
- Numbers with preceding zeros are formatted anyway (
000123»000,123) - When the
thousands_separatoris set to an empty space (" "), the whole number must be selected in order to unformat it (12 345»12345)
Changelog
See CHANGELOG.md
Contributing
See CONTRIBUTING.md
License
See LICENSE.md
Software Credits
The development of this software was made possible using the following components:
- Expand Selection to Whitespace by Paul Sarena Licensed under: MIT License