/
Source Code Auto Formatting
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.
Related content
Coding Style
Coding Style
Read with this
Pricefx Studio v8 Release Notes
Pricefx Studio v8 Release Notes
More like this
Recommended Logic Structure for Line Item Calculation Logics
Recommended Logic Structure for Line Item Calculation Logics
Read with this
Logics Editor
Logics Editor
More like this
Calling Library Functions with Aliases
Calling Library Functions with Aliases
Read with this
Pricefx Studio v14 Release Notes
Pricefx Studio v14 Release Notes
More like this
Found an issue in documentation? Write to us.