This is a plugin for PowerToys Run that formats the input using the API provided by SQLFormat.org.
Minimum PowerToys version: 0.56.2
Download the latest release zip file from the releases page.
Exit PowerToys and extract the zip file into %PROGRAMFILES%\PowerToys\modules\launcher\Plugins
(this path may differ if you have a different location for PowerToys).
Start PowerToys.
Within the PowerToys Run window type sf
and write (or paste) the query you wish to format. Click enter to have the query formatted.