Four Js Development Tools Forum

General => Ask Reuben => Topic started by: Reuben B. on December 22, 2022, 11:50:25 pm



Title: Ask Reuben 155 - Source Code Beautifier
Post by: Reuben B. on December 22, 2022, 11:50:25 pm
The source code beautifier was introduced to Genero in 3.20.  Genero Studio has the ability to format many file extensions (.xml, json etc) as well as Genero sources (.4gl).   Like anything Genero Studio does, deep down it is running a Genero command on the command line, and so even if you are not using Genero Studio, you can use the Source Code Beautifier by executing fglcomp with appropriate arguments.

The purpose of such a tool is to put your code in a consistent format that makes it easy for all the developers in your team to read and comprehend, thus improving productivity.  This is achieved by indenting nested code blocks, aligning code, consistent use of case, consistent use of tab and space.

Read more at https://4js.com/ask-reuben/ig-155/