Swift Postfix Templates#

Noctule provides postfix completion templates for Swift files. All available templates are shown below. Please refer to JetBrains’ documentation about postfix completion to learn more about the feature.

AbbreviationTitle
forinWraps a sequence expression into a for-in loop.
ifInserts a if statement using the selected expression as the condition.
whileInserts a while loop using the selected expression as the condition.
notInserts ! before an expression to negate it.
wrapInStringWraps an expression in an empty string with a string interpolation of the expression.
printWraps an expression with a print statement.
()Wraps an expression in parentheses.
expandExpands a normal string literal to a multiline string literal.

Please note that the language insight is not yet smart enough to show postfix templates only for the context they support. For example, iter is shown for expressions unsupported by the for-in loop.