Palantir Technologies has finally released an Eclipse Plugin for TypeScript, the statically typed superset of JavaScript with EcmaScript 6 features.
In order to use the plug-in, you have to install node.js and install the plugin via the Eclipse update site http://eclipse-update.palantir.com/eclipse-typescript/ . The plug-in is also available from the Eclipse Marketplace.
The plug-in is still beta, but offers a lot of features like
- code completion
- error annotations/markers
- find references
- format code
- highlight matching brace
- open definition
- outline view
- rename refactor
- syntax highlighting
- toggle comments
So most of the important features are already there.
Other interesting features are on the roadmap:
- compile-on-save
- jsdoc assistance
- search (for a class, interface, etc…)
- type hierarchy
Here is a screenshot of the autocomplete and problems view in action:
Here you can see the visualization of the type information which was determined using type inferencing:
So finally we have an alternative to using the TypeScript plugin for Visual Studio or WebStorm/IntelliJ.
For it’s early stage, the plug-in looks really promising to me.
Keep up the good work, Palantir!
Just for the sake of completeness: there are even more alternatives. I’m told Sublime has decent support for TypeScript, and Visual Studio Code is a free sibling of Visual Studio supporting TypeScript, too.
Plugin doesn’t work correctly or it still lacks a lot to be complete (like basic configuration and help?)
i installed plugin on Enide 2015 (both newest versions), NodeJS and TS are installed (i can use tsc from command line)
However, when i’m trying to run NodeJS project from Enide, there is an error
C:\Users\razor\AppData\Roaming\npm\tsc.cmd:1
(function (exports, require, module, __filename, __dirname) { @IF EXIST “%~dp0
^
SyntaxError: Unexpected token ILLEGAL
at exports.runInThisContext (vm.js:73:16)
at Module._compile (module.js:443:25)
at Object.Module._extensions..js (module.js:478:10)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
at Function.Module.runMain (module.js:501:10)
at startup (node.js:129:16)
at node.js:814:3
What’s wrong ?