Postfix Completion
for Windows and Linux
for macOS
Ctrl+Alt+S
Overview
Postfix code completion lets you transform an already typed expression to another one based on the postfix you type after a dot, the type of the expression, and its context. This transformation is performed by expanding the postfix-specific predefined template.
For example, the .if
postfix applied to an expression wraps it with an if
statement.
Before | After |
---|---|
function m(arg) {
arg.if
} | function m(arg) {
if (arg) {
}
} |
See more at: Postfix Code Completion.
On this page, enable and disable postfix templates and appoint the key to activate the template expansion.
Controls
See Also
Last modified: 17 July 2017