The following is an alternative way to run a Typescript program in IntelliJ. In my eyes this is easier than described here: https://www.jetbrains.com/help/idea/running-and-debugging-typescript.html#ws_ts_run_directly_launch
What to install
Install typescript (node.js also required, of course):
sudo npm install -g typescript
sudo npm install -g node-ts whereis ts-node
How to setup IntelliJ
Now edit a configuration in IntelliJ like this:
![](https://johannes-schwagereit.de/wp-content/uploads/2023/08/grafik.png)
If we now take a very simple Typescript-program, it can be easily run:
![](https://johannes-schwagereit.de/wp-content/uploads/2023/08/grafik-3.png)
And, before you ask, also debugging works with this setup.
Schreibe einen Kommentar