Create insertion formats for command snippets in CotEditor on Mac

You can edit command snippets in the Command tab of Snippets settings. By using variables in an insertion format, you can reflect the selected text and control the insertion point after the snippet is inserted.

If the insertion format contains line breaks, lines after the first inherit the indentation at the insertion point.

The following variables are available in command snippet insertion formats.

VariableDescription
<<<CURSOR>>>

The insertion point after the snippet is inserted.

<<<SELECTION>>>

The text selected at the time the snippet is inserted.

See also