Sublime Forum

Pretty JSON not prettifying on ST3

#1

I just installed [Pretty JSON] for my ST3 which is running on Ubuntu 18.

When I select the text and enter ctrl-alt-j it puts all of the text on one line as if the minimize json function is applied. ctrl-j does the same thing. But it works if I go to the Command Palette and enter “Pretty JSON: Format (Pretty Print) JSON”.

The file extension is .json and ST3 indicates that it sees the file as a json file.

There is nothing listed for ctrl-alt-j in Default (Linux).sublime-keymap and the install didn’t seem to add any customizations for it. I tried adding { “keys”: [“ctrl+shift+j”], “command”: “prettify-json” } to the keymap (guessing the prettify-json is the name of the command) but that didn’t help.

What am I missing here? Do I need to do some configuration? Is something else overriding the key-binding?

0 Likes