Insert a code snippet
Code snippets are predefined blocks of code that you can insert in a Structured Text routine.
To insert a code snippet:
- Place the cursor at the spot in the routine to insert the code snippet.
- Type the keyword for the snippet to insert:if,elsif,case,for,while,repeat, or#region.
- PressTab.
- Fill in the parameters in the snippet. PressTabto move to the next parameter, or pressShift + Tabto move to the previous parameter. The parameters are highlighted in orange.
- To exit the snippet session, pressEscto leave the cursor in its present position, or pressEnterto move the cursor to the next line or to the next logical spot to enter logic.
Provide Feedback