Observable’s indentation is mostly out-of-the-box behavior from CodeMirror, which will likely get a boost in CodeMirror 6. It is, by effect of being very performant, also pretty rough: if you want deterministic, smart auto-formatting, I’d really recommend using the (beta) prettier support.
1 Like