Why the error message matters more than the indentation

You rarely paste a file into a formatter because the whitespace offends you. You paste it because something is wrong and the wall of text will not say where. Browsers do not even agree on how to phrase the problem: Chrome reports at position 412, Firefox reports at line 12 column 7, Safari reports neither. Our formatters read all of those shapes and work out the missing half themselves, so the error looks the same wherever you are.

Editor plugin or web page?

For files inside a project, Prettier in a pre-commit hook wins, because it also settles the argument about style. A web page wins for everything that is not in a project: a webhook payload from Stripe, a config a client mailed you, a response copied out of the network tab. Nothing to install, and it keeps working after you disconnect the wifi.