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

Indent content between cfscript tags

Open bhartsfield opened this issue 3 years ago • 3 comments

I did not find anything in existing settings, please let me know if I am just missing it. I'd like cfformat to not line up the content in cfscript blocks with the actual cfscript opening and closing tags. Instead, I'd prefer the content between cfscript tags to be indented. Basically, everything between cfscript tags should indent by the current indent settings + 1

bhartsfield avatar Mar 09 '22 12:03 bhartsfield

You are right that there isn't a setting to control this. It is currently hardcoded here: models/cftags/CFTagBody.cfc#L35. I am not opposed to adding a setting for it, however.

jcberquist avatar Mar 10 '22 16:03 jcberquist

Here's an UP vote for this one!

onlyleura avatar Feb 27 '23 23:02 onlyleura

Late to the party but I would love this setting as well

andmayfi92 avatar Feb 06 '24 14:02 andmayfi92