Sometimes SPARQL code appears in URLs, as long query strings, and then it is basically a very long one-liner, often URL-encoded. Or the SPARQL contains a lot of UNIONs which have linebreaks located at wrong places.
I am looking for a SPARQL query formatter.
Ideally that would be a VSCode extension. However currently (Dec 2020) there exists no such extension in the VSCode marketplace.
I would also work with a command line tool (for Linux), or an online tool where users can paste in the unformatted query and receive a formatted query.