Best IDE or editor with Code Formatting for JavaScript, HTML, and PHP?

1 points by ashwagary ↗ HN
I'm curious what your favorite solutions are for working with code, ideally with built in automatic code indentation and not too heavy on CPU usage.

This has been a pain for me as a Sublime Text user. I noticed it has quirks that make indentation a problem and without ease of readability my productivity suffers tremendously since my work involves dealings with long nested functions.

5 comments

[ 4.5 ms ] story [ 23.0 ms ] thread
webstorm as best paid option, vscode as best free option and probably better than most paid ones as well (can use vscodium - oss vscode build without telemetry; if you're really scared about privacy and stuff)
I’ve been very pleased with the quality of JetBrains products. My dev team has recently switched to VS Code and to get the same level of functionally we need several packages all in various states of maturity and the UX is no where close. It pays to pay JetBrains in terms of productivity.
Yes, I too noticed this issue with vscode extensions being unreliable, having possible telemetry, and other bloat.
I will check out webstorm again and report back.

One problem I did notice with jetbrains software was when working with mounted remote drives (sshfs or webdav), it has this weird default behavior of crawling the contents of the mounted folder even if it's a whole linux /var folder, which is not something I need. I will try to turn that feature off if possible.

I did try it again and ran into the sluggishness issue which can't be worked around.

Even after turning off all plugins there is sometimes 500ms-2s of additional latency when doing basic things like opening menus or opening files. Not sure what else to turn off to reach a usable speed.

I wish it shipped with just enough features turned on to edit code and maintain a high level of performance, if it's indeed a settings issue.