Access vast amounts of technical know-how and pro tips from our community of Geo SCADA experts.
Search in
Link copied. Please paste this link to share this article on your social media post.
Originally published on Geo SCADA Knowledge Base by Anonymous user | June 09, 2021 07:41 PM
Indents and outdents in structured text are used to easily show blocks of code, i.e. the code within an IF statement or WHILE loop:
IF (i=1) THEN
j:=1;
k:=2;
ELSE
j:=2;
k:=1;
END_IF;
If you are using multiple IF statements and then add or delete one of the indentation levels, the lines will look out of place, which makes the programs harder to read and understand.
Highlight multiple lines (this doesn't work on single lines) and press the TAB key to indent all the lines at once. To outdent, use SHIFT-TAB.
These are the same shortcuts as used in Visual Studio, however Visual Studio also provides icons to do the same thing and so users may not be used to these shortcuts.
Go: Home Back
Link copied. Please paste this link to share this article on your social media post.
Create your free account or log in to subscribe to the board - and gain access to more than 10,000+ support articles along with insights from experts and peers.