5 ms·
Feedback: First time through I just pasted some JSON and wondered why it didn't format. I hadn't realised the page had instructions on it – I had assumed it was
by danpalmer 7y ago
Feedback: First time through I just pasted some JSON and wondered why it didn't format. I hadn't realised the page had instructions on it – I had assumed it was just sample JSON.
Second time through, I read the instructions, and realised that the keyboard shortcuts are Control-based – this is less common for macOS, "Cmd+Enter" feels like a more consistent shortcut to use.
I think this should probably just auto-format all the time. It's only for formatting, so that wouldn't get in the way.
- plibither8 7y agoI second this, I too expected this to auto-format - the only purpose of this tool is to prettify the JSON and rarely would anyone paste and then edit there.
- jerf 7y agoCTRL for the shortcuts overlaps with the browser. You need to either completely take this over, or completely leave it be, and in this case, probably the latter. Otherwise I get shocked when I hit CTRL-w to see if it erases a word and it closes my window without warning. There's also apparently some other things going on; CTRL-u uppercases the word you're on. A link to more docs or something may be helpful.
- saagarjha 7y agoInterestingly, some of the macOS shortcuts work but not others. I can kill text, for example, but yanking it back doesn't seem to work.
- earthboundkid 7y agoDo what https://prettier.io/playground/ https://prettier.io/playground/ does and have two windows so one autoformats.
- WoopDaddy 7y agoAt least that guy got what he needed quickly instead of debating 5000 ways to do the same thing on HN.