Source Code Auto Formatting

To improve code readability, it is common and recommended to auto-format your code before committing it.

For the old projects where this best practice was in place, it is recommended that you run auto-format for each logic. It can be done for all logics at once by selecting “elements” folders > right click > Reformat Code.

The logic.json files should be excluded, since those are auto-formatted by the pfxpackage engine in slightly different way!

In IntelliJ, the default key binding for file reformat is Ctrl+Alt+L. See https://www.jetbrains.com/help/idea/reformat-and-rearrange-code.html.

Found an issue in documentation? Write to us.