function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
kjpetersonkjpeterson 

Automatic formula formatter

Is there anything available for automatic formual formatting?  Mainly automatic indention/newlines to turn those left aligned messes and code blobs into readable hierarchies.

Shashikant SharmaShashikant Sharma

No such is available to my knowledge. I am afraid you need to do it your self.

kjpetersonkjpeterson
I ended up building a Chrome extension that embeds a Salesforce formula editor on the page that has formatting options, syntax highlighting, and many more features.

https://www.enhancedformulaeditor.com/
Luis Lau H.Luis Lau H.
Much of APEX formula resembles to MS Excel formulas, so we could use an Excel Formulas beautifier https://www.excelformulabeautifier.com/