Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Run with tsxNew to Visual Studio Code? Get it now.
Run with tsx

Run with tsx

BenSN Development

|
233 installs
| (0) | Free
Adds a context menu option to run TypeScript files using tsx.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Run with tsx

Run with tsx is a Visual Studio Code extension that simplifies running TypeScript files using tsx. With just a right-click, you can execute your .ts files in an integrated terminal.

Features

  • Adds a Run with tsx option to the context menu for .ts files.
  • Automatically opens and reuses an integrated terminal for running files.
  • Makes it easier to work with TypeScript files without needing to manually run commands.

Installation

From VS Code Marketplace

  1. Open the Extensions view in Visual Studio Code (Ctrl+Shift+X or Cmd+Shift+X on macOS).
  2. Search for Run with tsx.
  3. Click Install.

From .vsix File

  1. Download the .vsix file from the Releases.
  2. In Visual Studio Code, click the ... menu in the Extensions view and select Install from VSIX....
  3. Choose the downloaded .vsix file.

Usage

  1. Right-click on a ts file in the Explorer or Editor and select Run with tsx.
  2. The command will execute npx tsx <file-path>.

Requirements

  • Node.js (>= 14.x): Ensure you have Node.js installed.

Release Notes

1.0.0

  • Initial release.
  • Adds Run with tsx context menu option.
  • Executes TypeScript files in the integrated terminal.

Contributing

Contributions, issues, and feature requests are welcome! Feel free to check out the issues or submit a pull request.

  1. Fork the repository.
  2. Create your feature branch (git checkout -b feature/AmazingFeature).
  3. Commit your changes (git commit -m 'Add some AmazingFeature').
  4. Push to the branch (git push origin feature/AmazingFeature).
  5. Open a pull request.

GitHub Actions Secrets

To enable the GitHub Actions workflow for releasing the extension, you need to set up the following secrets in your repository settings:

  • VSCE_PAT: Personal Access Token for publishing to the Visual Studio Marketplace. You can generate it from here.

License

This project is licensed under the MIT License - see the LICENSE file for details.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft