• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Formatting the code

New Here ,
Jan 31, 2020 Jan 31, 2020

Copy link to clipboard

Copied

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?

TOPICS
Getting started

Views

789

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Jan 31, 2020 Jan 31, 2020

Copy link to clipboard

Copied

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"
    }

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Apr 25, 2024 Apr 25, 2024

Copy link to clipboard

Copied

LATEST

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation