Skip to content

v0.44.0

Choose a tag to compare

@basmilius basmilius released this 28 Oct 08:34
· 530 commits to main since this release
Immutable release. Only release title and notes can be modified.
fafe8aa

✨ Features

  • Live templates: an abbreviation such as log, fore or itar expands with Tab into a snippet with fields, in the languages and places (code, comments, strings) it is made for. Insert Live Template (Mod+J) lists the templates that apply at the caret, and Save as Live Template hands the selection to the host as a draft. Templates also appear in the completion list. A host supplies its own templates through TemplateRegistry.
  • Surround With (Mod+Alt+T) wraps the selection or the line in if, while, try, a block, (expr) or a region comment, picked by number. Surround with Live Template (Mod+Alt+J) offers the templates that use the selection, with Emmet first in markup.
  • Unwrap/Remove (Mod+Shift+Delete) takes away the if, loop, try, else, catch or enclosing tag around the caret and keeps its body.
  • Postfix completion: .if, .not, .return, .forof, .log and more after an expression turn it into the construct around it, on Tab or from the completion list. Several possible expressions open a chooser.

⚠️ Breaking changes

  • Mod+Alt+J is Surround with Live Template, as in IntelliJ, so wrapWithAbbreviation has no default chord any more. Emmet is the first row of that list in markup. A host that wants the old chord sets wrapWithAbbreviation in its keymap with resolveKeymap.

Full Changelog: v0.43.0...v0.44.0