|
|
|
|
|
by kstrauser
825 days ago
|
|
> Sometimes there are situational choices that autoformatters cannot comprehend. I haven't stumbled across that. Could you give an example? > I also failed to make formatters follow the style choices I use, they were just not configurable enough. That's kind of the whole point. I love, love, love Python's Black formatter. In my opinion, it chose the wrong default for quoting strings (i.e. it re-writes single quotes as double quotes), which irked me until I gave up and accepted it. In return, I no longer have to put up with my coworkers' insane style choices, just as they no longer have to tolerate mine. With a single addition to our CI pipeline, the days of dumb arguments about the "right" way to format our code came to an end. |
|
One thing clang-format ruined for me is when I laid code out in the same indentation as the JSON it was generating.
E.g.
became