Hacker News new | ask | show | jobs
by josteink 3023 days ago
I'm not saying that CLI-based tools are bad in any way. They are awesome, especially for automation.

I'm just saying that discovering the benefits of automatic code-formatting seems like a very strange thing to do in 2018.

This has been around for a loooong, looong time now.

3 comments

I hate replying with an XKCD, but https://xkcd.com/1053/

The OP didn't even state they're "discovering [it] in 2018", at all. And even if they did, so what? What is the point that you're trying to make -- that you're a better developer because you knew something they didn't?

Can you give any examples ?
This is a screenshot of some of the formatting options provided in Visual Studio:

https://imgur.com/a/6PkSi

What on earth would prettier include to make it that much more extensive?

Just curious, does VS format files based on max length and break them if it exceeds? I have never seen a setting for that
I think the idea behind prettier is that it does not have many options.

Does VS format on the fly, or only on save ?

You don't understand how much Prettier formats your code. Your condescension is misinformed. It's not comparable to run of the mill IDE formatting.