How to run a typescript file directly using webstorm, just like a direct run js file?

the right-click .ts file does not prompt run .ts,

then I installed a plug-in. The ts-node, found in webstorm can run ts files after installing the plug-in. However, when an error is reported, unknown, does not know what to do. Stackoverflow has searched all of them, and has not found a solution.

clipboard.png

can someone directly use webstorm to run ts files? ask for advice. Instead of converting to js and then running, you can run ts directly

.
Menu