You can create a file named .clang-format in your sketch directory with the following content and the problem should go away. These are derived from IDE v2.3.6. For future versions it may be better to use original sources mentioned below.
The above is based options from the arduino-ide source repo. However, Edgar Bonet mentioned in a comment below:
Note that clang-format has decent default settings, which include ColumnLimit: 80. Thus, an empty style file is enough to avoid the overlong line. A style file with the single line PenaltyIndentedWhitespace: 1 would already give a decent formatting.
You may want to play around with the other options to see if you can find a better way of going about it. Arduino IDE 2.3.6 bundles clang-format version 14.0.0.
You don't need to reload the IDE or anything. You can modify that file and hit CTRL+T in the IDE until it does what you want, or at least until it does something you can stand. There do seem to exist web based tools for generating/editing clang format configurations that will give you a preview.