An easy-to-use VSCode setSelectedText() method to replace the selected text
An easy-to-use VS Code
#setSelectedText()
method
$ npm install --save vscode-set-selected-text
import setSelectedText from 'vscode-set-selected-text';
setSelectedText('new text');
Returns a promise.
string
Type: string
Text you want to set in the editor
vscode.TextEditor
Editor to set the text in. This will be window.activeTextEditor
if you omit.