logoalt Hacker News

LoganDarkyesterday at 11:10 PM1 replyview on HN

I still think rustfmt made a mistake by going with four spaces. It's basically inferior for everything except forcing everyone to use the same indentation width, which is actually a downside, since I constantly encounter two-space indent codebases that I can't read and also can't change to four spaces because it's not tabs. Also translating spaces to tabs visually is undecidable thanks to alignment, while the inverse is not true. Ugh.


Replies

cyannyesterday at 11:36 PM

I've got a `.rustfmt.toml` file in all my repos with

  hard_tabs = true
show 1 reply