Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

For Go, they have a statistic from a few years back that suggests about 98% of a cross section of real-world Go projects are formatted according to gofmt. (https://jmoiron.net/blog/fmty-dmpty) I can believe Rustfmt and other tools not having quite the same reach, but I would guess that the proportion is still pretty high.

These tools are very standard and very widely used.

> Don't you want to see neatly formatted code while you're writing it?

Every time I pause, I press ctrl-S or an equivalent. So I really am seeing neatly formatted code while I'm writing it. I would guess that 90% of the time, if my code is syntactically valid, it's also neatly formatted. And even if it's not valid code, it's probably very close to being neatly formatted.



> Every time I pause, I press ctrl-S or an equivalent.

I use Vim, so that would be really unnatural and disruptive.


I actually use Helix so I don't use that either, but I figured ctrl-S would be the more well-known shortcut for communicative purposes.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: