Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

typescript and cloud9 ide how to?

I would like to use typescript language within cloud9 ide.

Do you know, if there are some tutorials to explain how to do ( autocompletion, add d.ts references, compile, debug)?

Thanks

like image 569
rlasjunies Avatar asked Feb 02 '14 18:02

rlasjunies


1 Answers

Since Cloud9 has NPM support, you can compile your Typescript by installing the 'typescript' package.

  1. Go to the console (at the bottom of the IDE) and run npm install typescript.

    This installs tsc, which can be used to compile your Typescript.

  2. Run tsc /path/to/file.ts to compile.

Syntax highlighting is provided by the Ace editor.

like image 100
grg Avatar answered Sep 21 '22 05:09

grg