Apply formatting to a routine
To add or remove indents to regions and statements in a Structured Text routine,
right-click and select
Format Document
. The Structured Text Editor formats the
routine.For example, if your routine contains this construct:
if myBit then
SetmyValue :=1;
else
SetmyValue := 0:
end_if;
The applied formatting would look like this:
if myBit then SetmyValue :=1; else SetmyValue := 0: end_if;
Select
Format Document
again to undo the formatting.Provide Feedback