Zeus + TypeScript

Find Tips and tricks on how to better use the Zeus IDE. Feel free to post your own tips but please do not post bug reports, feature requests or questions here.
Post Reply
jussij
Site Admin
Posts: 2650
Joined: Fri Aug 13, 2004 5:10 pm

Zeus + TypeScript

Post by jussij »

To configure the Zeus IDE to work with TypeScript run the following commands:

1. Install TypeScript
Open a command prompt window and run the following command:

Code: Select all

npm install typescript -g

2. Configure the Zeus IDE
Edit the Zeus TypeScript document type using the Options, Document Types menu and selecting the Compiler panel.

Set the compiler command line option to the following:

Code: Select all

tsc "$fn"
To configure the compiler for strict operation use this command line instead:

Code: Select all

tsc --strict "$fn"
Details describing additional tsc options can be found here: https://www.typescriptlang.org/docs/han ... tions.html

Configure the other Zeus options as shown below:
tsc-compile.png
tsc-compile.png (138.38 KiB) Viewed 27464 times

3. Compiling the TypeScript File within the Zeus IDE

To compile a TypeScript file just open the file in Zeus and use the Compiler, Compile menu to run the tsc compiler.

4. Setting up the Language Server
To setup the TypeScript language server follow the instructions found here: http://www.zeusedit.com/lsp/typescript.html
Post Reply