Configure Netbeans With Typescript
Install NodeJS if you haven't got it already.
Go to the latest release page of the Netbeans plugin and download the
Open Netbeans and click Tools > Plugins. Then go to the
Downloaded tab and click
Select the .nbm file you just downloaded.
Now make sure the plugin is selected and click install. Keep clicking continue and accept the warning message stating that the plugin is not signed.
Configure Typescript Files to Compile On Save
Right-click your project and click on Properties.
Click on the
Typescript option below
Compile on Save. Ignore the message to edit the tsconfig file as there isn't one by default and performing this step has the desired effect.
You have now installed support for Typescript in Netbeans. You can now create Typescript (
.ts). For an extremely basic example, you can create a
hello_world.ts file with the following contents:
var x: number = 4; var y: string = x
... and you should get a Typescript error message like below.