Skip to main content
Participant
Jan 31, 2020 11:18 AM UTC
Question

Formatting the code

Hi, is anyone using Visual Studio Code? I'm trying to format the code with the command ALT+SHIFT+F and after that it says: "There is no formatter for 'cfml' files installed." How can we format the ColdFusion code in Visual Studio Code?

This topic is closed to new replies. Start a new post to keep the conversation going.

2 replies

James Moberg
Inspiring
Jan 31, 2020 2:32 PM UTC

Edit settings.json by press CTRL+SHIFT+P and select "Open Settings (JSON).  In the JSON file, search for HTML and add cfm, cfml and cfc.

I use the Beautify extension.  It allows you to select code and "Beautify selection".

 

You'll also want to add the code below so that you can use Emmet when editing CFM files.

 

    "emmet.includeLanguages": {
        "cfml": "html",
        "lang-cfml": "html"
    }

Translate
Participant
Apr 25, 2024 9:57 PM UTC

This was driving me nuts. Worked immediately! Thank you!!!

Translate