IDEs need to deal with things like unclosed quotes and brackets. In theory by knowing the history of recent edits they can do this more smartly than a tool without this information, so not trying to deal with this case makes sense.
On the other hand, formatting snippets (e.g. function bodies) could be useful.