SnippetTextEdit

A snippet edit represents an interactive edit that is performed by the editor.

Note that a snippet edit can always be performed as a normal text edit. This will happen when no matching editor is open or when a workspace edit contains snippet edits for multiple files. In that case only those that match the active editor will be performed as snippet edits and the others as normal text edits.

Online Documentation

Constructors

Link copied to clipboard
constructor(range: Range, snippet: SnippetString)

Create a new snippet edit.

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Whether the snippet edit should be applied with existing whitespace preserved.

Link copied to clipboard

The range this edit applies to.

Link copied to clipboard

The snippet this edit will perform.