Ask HN: Autoformatting JavaScript
After using Go for awhile, one of the best features isn't a feature of the language at all, but a feature of the culture: there's minimal time spent thinking about code formatting because the right way is almost always whatever gofmt says.
I personally have used js2.el for emacs in the past, but there are people I work with who use crazy editors (ahem, acme) that don't have good js modes.
I looked at js-beautify, which seems closest to what I want, but its --preserve-newlines option doesn't seem to work, or at least doesn't handle the cases I care about.
I'm curious what others do here.
0 comments
[ 4.2 ms ] story [ 10.6 ms ] threadNo comments yet.