ColdFusion auto formatting issues
Answered
Has anyone figured out how to fix the auto formatting issues in ColdFusion script syntax with the following 2 things:
- Include template statement - indents one extra level
- Method call chaining - indents way too deep and then un-indents a level on every consecutive chaining.
I also tried to change a few things in the CFML code style settings, but nothing helped. In fact, I don't think there is any method call chaining specific style settings for CFML like there is for Java. So, I don't know if this is just a missing feature in IntelliJ for ColdFusion.
Here's a sample code to show how it auto formats for me.
<cfscript>
//This is how intellij formats an include statement
include "index.cfm";
myArray = [];
//This is how intellij auto formats chained method calls
myArray.append(a)
.append(b)
.append(e)
.append(c)
.append(d);
writeDump(myArray);
</cfscript>
Please sign in to leave a comment.
There is an open issue, please follow https://youtrack.jetbrains.com/issue/IDEA-142759 for updates.
Submitted another issue for include, but it may be the same problem, so fixing one will automatically fix another: https://youtrack.jetbrains.com/issue/IDEA-172574.