Editor.replaceSelection method
Editor › replaceSelection
Official
Replace the current selection with the given text.Signature:
replaceSelection(replacement: string, origin?: string): voidParameters:
| Parameter | Type | Description |
|---|---|---|
| replacement | string | The replacement text. |
| origin? | string | The user event that triggered the replacement. |
Returns: void
Since: 0.11.11