Tips and tricks: View whitespace

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:

Whitespace example

I found it actually pretty use full, In particular when when developing a Structured Text Code Formatter.

Gerhard Barteling

Gerhard is a mechatronic engineer with a predilection for software engineering.