Skip to content
| Marketplace
Sign in
Visual Studio Code>Formatters>CFML Formatter That WorksNew to Visual Studio Code? Get it now.
CFML Formatter That Works

CFML Formatter That Works

TRyanDev

|
1 install
| (0) | Free
Code formatter for ColdFusion and ColdBox files (.cfc, .cfm)
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Basic Guidelines for formatter

1. Basic idea

  1. Line ends with {, [, ( :
    a. opening bracket to separate line
    b. indentLevel++

  2. Line ends with }, ], ) :
    a. closing bracket to separate line
    a. next line should be un-indented
    b. indentLevel--

  3. Line begins with {, [, ( :
    a. next line should be indented
    b. indentLevel++

  4. Line begins with }, ], ):
    a. indentLevel--

test string:

remote function getUser(id){
  var user = {};
  user.id=id;
  user.name = "Test User";
  return user;}

above becomes:

remote function getUser(id)
{
  var user = {};
  user.id=id;
  user.name = "Test User";
  return user; 
}
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft