An easy-to-use VS Code
#setText()
method
$ npm install --save vscode-set-text
import setText from 'vscode-set-text';
setText('new text');
Returns a promise.
Type: string
Text you want to set in the editor
Type: vscode.TextEditor
Default: window.activeTextEditor
Editor to set the text in.
MIT © Sam Verschueren