JSONComma
A Sublime Text plugin to deal with those damn JSON commas!
Details
Installs
- Total 40K
- Win 23K
- Mac 12K
- Linux 5K
Feb 22 | Feb 21 | Feb 20 | Feb 19 | Feb 18 | Feb 17 | Feb 16 | Feb 15 | Feb 14 | Feb 13 | Feb 12 | Feb 11 | Feb 10 | Feb 9 | Feb 8 | Feb 7 | Feb 6 | Feb 5 | Feb 4 | Feb 3 | Feb 2 | Feb 1 | Jan 31 | Jan 30 | Jan 29 | Jan 28 | Jan 27 | Jan 26 | Jan 25 | Jan 24 | Jan 23 | Jan 22 | Jan 21 | Jan 20 | Jan 19 | Jan 18 | Jan 17 | Jan 16 | Jan 15 | Jan 14 | Jan 13 | Jan 12 | Jan 11 | Jan 10 | Jan 9 | Jan 8 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 1 | 2 | 1 | 6 | 1 | 2 | 3 | 1 | 0 | 10 | 6 | 4 | 3 | 2 | 4 | 2 | 4 | 2 | 3 | 1 | 0 | 1 | 1 | 1 | 1 | 2 | 0 | 2 | 1 | 7 | 5 | 3 | 6 | 5 | 3 | 3 | 6 | 1 | 3 | 4 | 5 | 1 | 1 | 5 | 3 | 4 |
Mac | 0 | 3 | 2 | 2 | 2 | 4 | 1 | 2 | 3 | 5 | 1 | 5 | 1 | 1 | 1 | 1 | 3 | 2 | 3 | 2 | 3 | 3 | 2 | 3 | 1 | 4 | 0 | 1 | 1 | 3 | 5 | 3 | 4 | 3 | 1 | 1 | 1 | 4 | 5 | 2 | 3 | 0 | 1 | 1 | 1 | 8 |
Linux | 0 | 0 | 2 | 1 | 1 | 2 | 1 | 3 | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 2 | 1 | 3 | 0 | 0 | 0 | 5 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 0 | 2 | 1 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 1 | 0 | 1 |
Readme
- Source
- raw.githubusercontent.com
JSONComma
This is the official plugin adapting jsoncomma
to Sublime Text 3.
jsoncomma
is a simple utility which manages the commas in your JSON-like files. It adds needed ones, and removes the others.
Settings
JSONComma will run every time you save a json-like file. It tries to be smart about what is JSON like (more details in the should_be_enabled
function). However, you can explicitly choose whether it should fix your file on save by changing the view setting like so:
{
"jsoncomma_enabled": false
}
So, for example, if you want to disable running on save for all .json
file, you can open a JSON file and search up in the command palette Preferences: Settings Syntax Specific
and add the text above. This will explicitly disable running on save.
Similarly, you can explicitly enable it for any syntax you want. All it takes a view settings.
If JSONComma is disabled for the current view (as in it won't run on save), you can fix up some specific text by selecting it and searching up in the command palette JSONComma: Fix Selection
.
Automatic download
JSONComma can automatically download the jsoncomma
server for you. If you accept it, this package will keep it updated for you. For the curious, here is where the binary is download on your system:
Platform | Location |
---|---|
Windows | %APPDATA%\jsoncomma\jsoncomma.exe |
Mac OS | ~/Library/Application Support/jsoncomma/jsoncomma |
Linux | $XDG_DATA_HOME/.local/share/jsoncomma/jsoncomma |
Note about naming
In general, you should refer to jsoncomma all in lower case. It's just that this plugin for Sublime Text has upper case letters to fit with the editor's style.