Closed chapmandu closed 3 years ago
I agree that this would be great. In my opinion the lack of it is the current shortcoming of cfformat
. Unfortunately, the way cfformat
currently works (no AST), it can't tell ahead of time that it is looking at a compound expression and split on the operator. The best it can do is respect the line breaks you put in, so if you put your "wanted" version in place yourself, it should be preserved. Absent a significant rework of cfformat
internals, this is going to be the best it can do. Sorry!
Never mind.. On the upside, the fact that writing the desired format is not overwritten is a great feature in itself.
Thanks again!
I'm not sure how to categorise this, but would it be possible to split long lines by operators rather than function arguments.
input
actual
wanted