Skip to main content

Command: Format

Debug mode

This functionality is available only when your CODESYS instance is started in debug mode.

To do this, start your instance with the following command line call:

codesys.exe --debug

Function: The command formats an ST object according to the rules configured in the CODESYS options in order to improve the readability of the code.

Call: Context menu under the Refactoring menu

Requirement: An ST editor is open and the cursor is located within a declaration or an implementation.

For more information, see: Auto Formatter