Hacker News new | ask | show | jobs
by progx 1130 days ago
Use it since ~6 month. It is fast and works without bigger problems. But you have to learn and accept, that you can not modify much things like in prettier,. You have to use it as it is. That is the philosophy of their tools.

And after a while it is ok. You realize, that you spend before much time to modify everyhting, that is not really necesary.

1 comments

I love it, I hadn't realized how much time I waste formatting my code until I turned on prettier autoformat in my repo.
3 years of using prettier and I still curse it daily for not letting me have more than 1 empty line to delineate related sections of code in large files for readability.
Add `// -----------------` in between blocks to work around this issue, and IMO provide much better delineation of content blocks e.g. imports vs definitions.

I do miss C#'s use of macros to allow defining arbitrary blocks that can be named and folded though.

In Jetbrains Webstorm you can create foldable regions. Happy customer.

https://www.jetbrains.com/help/webstorm/working-with-source-...