vscode-set-text
v1.0.0
Published
An easy-to-use VS Code `#setText()` method
Downloads
10
Maintainers
Readme
vscode-set-text
An easy-to-use VS Code
#setText()
method
Install
$ npm install --save vscode-set-text
Usage
import setText from 'vscode-set-text';
setText('new text');
API
setText(text, [editor])
text
Type: string
Text you want to set in the editor
editor
Type: vscode.TextEditor
Default: window.activeTextEditor
Editor to set the text in.
License
MIT © Sam Verschueren