Today I wanted to share a use full trick I only learned last week. Codesys (and TwinCAT) has an option to make your whitespace visible!
In the top toolbar go to “Edit>Advanced>View whitespace” to activate this function:
Your code will now look like this:
I found it actually pretty use full, In particular when when developing a Structured Text Code Formatter.