Skip to main content
Inspiring
January 5, 2023
Question

ColdFusion Builder Extension for Visual Studio Code Formatting?

  • January 5, 2023
  • 1 reply
  • 597 views

Hi,

 

I installed ColdFusion Builder Extension for Visual Studio Code. I also have the Prettier extension installed to handle formatting.  I got a notification in VSCode saying something like "Prettier is unable to format ColdFusion files (CFML), please pick a different default formatter".  The option presented was to use "Adobe ColdFusion Builder", so I selected it.  Now when I view and save .cfm files it formats the files automatically.

 

The issue is that I don't like how it formats the files.  Can this be adjusted?  

 

Besides the fact that I don't like the way it does or does not indent JavaScript on the page, the biggest issue is it forces a hard line break at around a 100 characters that is notably moving some of my single line javascript comments to the next line resuling in uncommented text.

Example:

 

 

 

//Imagine comment longer than 100 characters...end of comment.

 

 

 

When I save it changed it to:

 

 

 

//Imagine comment longer than 100 characters...
end of comment.

 

 

 

Anyway, that is just to illustrate why I want to change it.  How do I change how CF Bulder Extension formats a page -especially where it is inserting hard line breaks?

 

Thanks!

This topic has been closed for replies.

1 reply

TwoEdgeAuthor
Inspiring
January 5, 2023

Sorry about all the typos, lol.