Skip to content
| Marketplace
Sign in
Visual Studio Code>Debuggers>TypeScript WorksheetNew to Visual Studio Code? Get it now.
TypeScript Worksheet

TypeScript Worksheet

Christian Woerz

|
4,594 installs
| (2) | Free
Live preview of your code right inside your editor
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

TypeScript Worksheet

Get the results of your  or  code right in your vscode.

Compatible with the major runtimes...

...and languages

Features

Real-time Code Execution

See the results of your code as you save the file, without the need to switch windows or execute your script separately.


Results during ongoing process

Show results for still running nodeJS code. You want to get the results of your running server or setInterval? We got you covered (macOS and linux)


Use different runtimes

Easily switch between , and to run your scripts. We try our best to handle compatibility issues for you.


Timetravel

Scrub through your code and see the exact order your code was executed. Especially useful for understanding async code.


Support for all kind of Imports

Effortlessly import any Node module or other files from your project into your worksheet. Whether you use CommonJS with require or ESM with import, we got you covered.


async and top level await support

You can effortlessly test your asynchronous code using Promises but also async/await.


Easy Activation

Just add //ts-worksheet or //ts-worksheet-with-variables to your file, and you're all set.


Per-Line activation

Just //? at the end of the lines you want to have the result shown.


Customisable

Change the colors and run behaviour yourself.

Usage

After installation, follow these simple steps to use the plugin:

  1. Open a JavaScript or TypeScript file.
  2. Add //ts-worksheet or //ts-worksheet-with-variables at the top of the file.
  3. Start coding and save the file when you are ready! You'll see the output of your code directly in the editor.

ATTENTION: This is still an early version of the plugin. If you find any issues, Create an issue for it.

Feedback and Support

We value your feedback! If you encounter any issues or have suggestions for improvements, please feel free to reach out to us. Your input helps us make this tool even better for the developer community.

License

This plugin is licensed under MIT License.

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