Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Terminal Code RunnerNew to Visual Studio Code? Get it now.
Terminal Code Runner

Terminal Code Runner

zardoy

|
4,593 installs
| (0) | Free
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Terminal Code Runner

This is extremely simplified and light version of Code Runner which supports running code only in terminal.

Why this instead of Code Runner:

  • Support use different terminals for each file
  • No Conflict with Output Colorizer
  • preserveFocus just works - enable focusOnEditor setting
  • clearPreviousOutput works on Windows - enable clearTerminal setting

Configuration

Note, this is a completely different version. By default, this extension only support run javascript file. You can configure it to support other languages:

{
    "terminalCodeRunner.execMap": {
        // default
        "javascript": "node ${relativeFile}",

        // support run typescript file
        // note: you need to install tsx by yourself, like npm install -g tsx
        "typescript": "tsx ${relativeFile}"
    }
}

You can also configure the executed command by globs:

{
    "terminalCodeRunner.executorMapByGlob": {
        // ${relativeFile} is VSCode variables, will fallback to file absolute path if no workspace opened
        // check all variables here: https://code.visualstudio.com/docs/editor/variables-reference
        "**/*.scpt": "osascript ${relativeFile}"
    }
}
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft