commandbox-cfformat icon indicating copy to clipboard operation
commandbox-cfformat copied to clipboard

Separator for function arguments

Open bockensm opened this issue 4 years ago • 1 comments

There is currently a setting for struct.separator. Can we have the same for function call arguments? I would like to be able to format named arguments with one of the same options from struct.separator.

Example:

myUDF( p="arg1", z: "arg2" );

Would become consistent as:

myUDF( p: "arg1", z: "arg2" );

bockensm avatar Apr 27 '21 14:04 bockensm

This makes sense to me as a request, and should be doable, but it isn’t backward compatible as right now I believe the spacing around the = is governed by the binary_operators.padding setting. Implementing this would break that connection. It might make still make sense to do this, but I have to keep that in mind, as it will affect everyone’s formatting.

jcberquist avatar May 02 '21 21:05 jcberquist