ScriptBoxExtend VS Code without creating extensions. ScriptBox enables you to extend VS Code using custom JavaScript code. To programmatically modify text, use Run Script
To create a new script, use Create Script. To modify your existing scripts, use Edit Script. To evaluate a JavaScript snippet, use Run Selection
Run ScriptExecute a predefined script on your current text selection. Usage
Script APIEach script is expected to export a single function:
Each ScriptBox script is passed the current text selection as a The current text selection is replaced with the return value if a The current text selection is unchanged if the return value is The script function is executed with Can I Use NPM Packages In My Scripts?Yes, just use Run SelectionExecute the currently selected JavaScript text (or the entire content of the active editor, if nothing is selected). Known IssuesNone CreditsLogo based on Hexagon by Chris Kerr from the Noun Project Release NotesThe CHANGELOG contains release notes for each release. |