Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>Script runNew to Visual Studio Code? Get it now.
Script run

Script run

Can Nguyen

|
832 installs
| (0) | Free
Run a command/script from the editor window
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Script runner for Visual Studio Code

Dislay a button to run a command for each function call expression with the function name matching functionNameRegex. Command can be customized.

{
  "fbc.scriptrunner.filePattern": {
    "type": "string",
    "default": "**/*.script.{js,ts,tsx,jsx}",
    "description": "Glob pattern to match test files (e.g., **/*.script.{js,ts,tsx,jsx})"
  },
  "fbc.scriptrunner.functions": {
    "type": "object",
    "additionalProperties": {
      "type": "object",
      "properties": {
        "command": {
          "type": "string",
          "description": "Command to execute. Supported variables: {filePath} {scriptName}",
          "default": "npx tsx {filePath} {scriptName}"
        },
        "title": {
          "type": "string",
          "description": "Title to display",
          "default": "Run script"
        }
      }
    },
    "default": {
      "script": {
        "command": "npx tsx {filePath} {scriptName}",
        "title": "Run script"
      }
    }
  }
}
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft