Hacker News new | past | comments | ask | show | jobs | submit login
Show HN: For VSCode, code snippets in Node.js instead of static code snippets (github.com/sktguha)
1 point by sktguha on Oct 22, 2020 | hide | past | favorite | 1 comment



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




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: