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.
| Abbreviation | Title |
|---|---|
forin | Wraps a sequence expression into a for-in loop. |
if | Inserts a if statement using the selected expression as the condition. |
while | Inserts a while loop using the selected expression as the condition. |
not | Inserts ! before an expression to negate it. |
wrapInString | Wraps an expression in an empty string with a string interpolation of the expression. |
print | Wraps an expression with a print statement. |
() | Wraps an expression in parentheses. |
expand | Expands 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,
iteris shown for expressions unsupported by thefor-inloop.