insertSnippet
abstract fun insertSnippet(snippet: SnippetString, location: JsAny = definedExternally, options: TextEditor.InsertSnippetOptions = definedExternally): PromiseLike<JsBoolean>(source)
Insert a snippet and put the editor into snippet mode. "Snippet mode" means the editor adds placeholders and additional cursors so that the user can complete or accept the snippet.
Parameters
snippet
The snippet to insert in this edit.
location
Position or range at which to insert the snippet, defaults to the current editor selection or selections.
options
The undo/redo behavior around this edit. By default, undo stops will be created before and after this edit.