Code formatting (indentation) in editors other than Emacs


#1

I’ve used Emacs for a while with Purescript, but I’d like to switch to a more modern IDE. I’m trying VS Code, for instance. What I’m missing from the VS Code Purescript extension is code formatting. Is it available? Is it available for any other IDEs or editors?

What I mean is auto-formatting indentation of a region, or auto-indenting a line after hitting Enter on the previous line. I like how Emacs defines Tab to be auto-indent no matter where in the line your cursor is.


#2

For VS Code, there is an extension API which supports formatting, either file or region, and I think the play here is to integrate purty with this. Hopefully similar with other editors.

I’m not using purty yet, so not sure if it’s “ready yet” - I got the impression it wasn’t quite there the last time I saw auto-formatting discussion but perhaps it has moved on since then