/vscode-script

Create scripts with VS Code extension capabilities.

Primary LanguageTypeScriptMIT LicenseMIT

You may be looking for a tool to create scripts with VS Code extension capabilities, Power Tools is a better choice.

Script

Create scripts with VS Code extension capabilities.

Install via CLI

code --install-extension zjffun.scripts

Usage

Create a script

export default ({ vscodeExtra }) => {
  const { replaceSelections } = vscodeExtra;
  replaceSelections((text) => {
    return JSON.stringify(text.split("\n"), null, 2);
  });
};

Config keyboard shortcuts

{
  "key": "cmd+5 l",
  "command": "script.run",
  "args": {
    "script": "[script path]"
  }
}

Run script

Release Notes

[TODO]

[Unreleased]

v0.0.1

  • Added features run scripts.