Features of the ST editor

Second view of programming window

The ST editor supports up to two views. To split the window, double-click or drag the split symbol located on the vertical scroll bar. A double-click on the split bar closes the second view.

Highlight matching items

Annotated vertical scroll bar

To help locating the highlighted text, the vertical scroll bar displays its positions in the editor. In addition, the vertical scroll bar shows the position of the currently active line where the main cursor is located.

Error squiggles

Errors detected while entering text are indicated by red "squiggles" in the editor, e.g. when a variable is not declared.

Multi-line and multi-caret editing

Use multi-caret selection to make the same edit in two or more places at the same time. For example, you can insert the same text or modify existing text in multiple locations, or you can comment in/out several lines of code at the same time.

Tip

Several commands support multi-selections, for example delete, cut, copy, paste, auto completion, context menu commands for example to insert a variable into the Entry data monitor dialog.

Quickly surround code with comment characters or parenthesis

Select complete lines of code, or a line fragment, and press one of the characters / ( [ ' to have the selection surrounded. If a piece of code has also been surrounded by comment characters, the comment characters will be removed.

Color indicator for code changes

Each change you make is highlighted with a color-coded bar in the left margin to indicate which lines have been changed.

The color orange indicates changed lines that are unsaved.

The color green indicates changed lines that are saved.

The color blue indicates lines that have been changed, then the changes have been undone so that the current lines are equal to the original lines, but this state has not been saved.

The color green-yellow indicates lines that that have been changed, then some changes have been undone so that the current lines are different to the original lines, but this state has not been saved.

Indent/unindent of lines

When writing code, to indent an entire block of code without changing each line individually, simply select the block by pressing <Shift>+<¯> and press <Tab>. To unindent a block, press <Shift>+<Tab>. Lines are automatically indented to the indentation level of the previous line after inserting a semicolon. Lines inserted by the <Return> key are also indented.

Folding/unfolding the code

You can choose to hide some code from view by clicking the minus sign in the column with the folding icons. You expand a collapsed region by clicking the plus sign. If you click the minus or the plus sign and simultaneously press <Ctrl> all elements of the block that can be folded will fold/unfold. Correspondingly, clicking the minus or plus sign and simultaneously pressing <Ctrl>+<Shift> affects all elements of the entire editor that can be folded.

Tip

The text of a collapsed region is shown in a tooltip when the mouse is moved over the [...] symbol at the end of the line.

Double-clicking the [...] symbol will expand the collapsed region.

Convert case

Select any text where you want to change lowercase characters to uppercase characters or vice versa. Press <Ctrl>+<Shift>+<U> to convert the selection to UPPERCASE. Press <Ctrl>+<U> to convert the selection to lower case.

Related topics:

Modified on: 2023-02-21Feedback on this pagePanasonic hotline