vscode-sort-json
vscode-sort-json copied to clipboard
VSCode Extension to Sort JSON objects
Is there a way to sort on save? Looks like is not working. I tried inputting source.fixAll.sortJSON but doesn't nothing.
Can you add a setting/configuration that lets you chose between alphanumeric and alphabetic sorting?
I have this extension setup together with https://marketplace.visualstudio.com/items?itemName=pucelle.run-on-save: ``` "runOnSave.commands": [ { "async": false, "command": "sortJSON.sortJSON", "match": ".*\\.json$", "runIn": "vscode" } ] ``` So basically I can use delayed saves...
It looks like this extension does not register itself as formatter. "Format Document" does not trigger anything. Maybe it would be pretty easy to register itself as a proper formatter?...
It was more difficult that it needed to be to disable sorting on save. I ended up having to manually write in the settings file ```json { "editor.codeActionsOnSave": { "source.fixAll.sortJSON":...
I tried both, "all formatters" and specifically enabling just this formatter. Neither autoformats on save for me.
Number keys with leading zeros are not sorted properly. 
The following JSON has two "1" keys, which is not great but [is technically allowed](https://stackoverflow.com/questions/21832701/does-json-syntax-allow-duplicate-keys-in-an-object): ```json { "1": 3, "2": 2, "1": 1, "4": 4 } ``` Sorting this JSON...
When adding a new json parameter like "enabled": true with STRG+Space, the value, in this case "true" is highlight --> works as expected. Now I use json-sort plugin and true...
I was using this extension for the first time and had some trouble figuring out how I could sort an object inside a larger JSON file. Turns out I had...