Settings

Theme

Show HN: For VSCode, code snippets in Node.js instead of static code snippets

github.com

1 points by sktguha 5 years ago · 1 comment

Reader

sktguhaOP 5 years ago

The idea is similar to code snippets in vscode, but here the difference is you can specify any arbitrary node.js script to run.

So if you select some text in vscode and press a shortcut key , your script is given the selected text as first argument(and other options in second argument like absolutePath etc) and whatever is returned from your script , the selected text will be changed to that value

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection