3 ms·
That sounds like an awesome idea (given that display is totally separated from the format-on-save anyways). I got a quick feel for it with this in a terminal:
by gcommer 10y ago
That sounds like an awesome idea (given that display is totally separated from the format-on-save anyways).
I got a quick feel for it with this in a terminal:
watch -n 0.1 'prettier --print-width $COLUMNS index.js'
... and unfortunately didn't really like it. Maybe in a pinch, but it still ends up feeling really cramped trying to read column in low-width terminals. At the other extreme (having the terminal be the only window on a 21:9 ultrawide), some of the lines get so long that you'd want a max anyways.
- robbrown451 10y agoI'm playing with this in CodeMirror (browser based code editor) which talks to a local node.js server, and I think it looks really good, as long as you have lower and upper limits as you suggest. Biggest concern is stuff like the undo history. I think it just needs a "formatting" button or even background process when you leave it idle for a bit. Might be better to run on the browser but haven't bothered trying yet.