Nocturnal Pumpkin Maelstrom

    vscode-set-selected-text
    TypeScript icon, indicating that this package has built-in type declarations

    1.0.0 • Public • Published

    vscode-set-selected-text

    An easy-to-use VS Code #setSelectedText() method

    Install

    $ npm install --save vscode-set-selected-text

    Usage

    import setSelectedText from 'vscode-set-selected-text';
     
    setSelectedText('new text');

    API

    setSelectedText(text, [editor])

    Returns a promise.

    text: string

    Type: string

    Text you want to set in the editor

    editor: vscode.TextEditor

    Editor to set the text in. This will be window.activeTextEditor if you omit.

    License

    MIT © Shogo Sensui

    Install

    npm i vscode-set-selected-text

    DownloadsWeekly Downloads

    2

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    2.03 kB

    Total Files

    4

    Last publish

    Collaborators

    • 1000ch