2 ms·
This is neat. I've created something equivalent for Markdown, and decided to post it today: https://news.ycombinator.com/item?id=7724159 https://news.ycombinat
by shurcooL 12y ago
This is neat. I've created something equivalent for Markdown, and decided to post it today:
https://news.ycombinator.com/item?id=7724159 https://news.ycombinator.com/item?id=7724159
After getting so used to gofmt-on-save (err, rather goimports-on-save now), I find it very odd when I edit other file types and nothing happens to the obvious mis-formatting when I save. So I'm a big supporter of any new formats coming out in the future to come with some sort of similar automated formatter tool.
One important aspect that allows gofmt to succeed with effectively full adoption is that it still allows for (limited, but nice looking) custom formatting. If you want an extra newline between two lines, it will be preserved. It gives enough freedom that always having it on is quite acceptable.