I’m battling with this in the context of Ada TS Mode.
AdaCore are moving to a new formatting engine GNAT Format, which
- is opinionated
- has fewer options
- is the default formatting engine for (recent releases of) Ada Language Server
- uses a GPR
package Format
In VS Code there’s a Formatting setting 'Use Gnatformat`, which s ticked by default.
ALS includes the implementation of both formatting engines, but (at any rate for the PP version) it doesn’t seem to pass all the options through, so you don’t necessarily get the effect you want.