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:

  1. Include template statement - indents one extra level
  2. 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>
0
2 comments

There is an open issue, please follow https://youtrack.jetbrains.com/issue/IDEA-142759 for updates.

0

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.

0

Please sign in to leave a comment.