I tried to find a perfect SQL format tool for a long long time, while all the attempts failed until I found this one: SQL Pretty Printer.
The online edition is here. It has many options and I think 'Max length per line in compact mode' maybe the first one you want to change it and usually I change it to 120.
Part of the formatted SQL as below:
The query itself is bad as I have to follow some limit rules, but the format of it is perfect!
Most of the time I work with Oracle SQL Developer while I could not find the corresponding plug-in version while I still think it is one of the best SQL format tools.