TypeScript
for Windows and Linux
for OS X
Ctrl+Alt+S
In this dialog, activate, deactivate, and configure the behaviour of the built-in TypeScript compiler that transpiles TypeScript code into JavaScript so the code can be executed in a browser and generates sources maps that ensure correspondence between the lines in the generated JavaScript code and the lines in the original TypeScript code.
Item | Description |
---|---|
Node interpreter | In this field, specify the location of the Node.js executable file. In most cases, WebStorm detects the Node.js executable and fills in the field automatically. |
TypeScript version |
In this area,
specify the version of the compiler to use. WebStorm displays the default bundled version.
To use a custom version of the compiler:
|
Use TypeScript Service | Select this check box to get native support from the TypeScript Language Service according to the up-to-date specifications. In this case syntax and error highlighting is performed based on the annotations retrieved from the TypeScript Language Service while code completion lists contain both suggestions from the TypeScript Language Service and suggestions calculated by WebStorm itself. |
Enable TypeScript Compiler | Select this check box to activate the built-in compiler. When the check box is selected, syntax highlighting and code completion are provided based only on the data from the built-in Typescript compiler. After you select this check box, the fields below on the page become active and you can configure the behaviour of the compiler. |
Track changes |
|
Scope |
From this drop-down list, choose the scope to apply the compiler in. The available options are:
VCS Scopes: these scopes are only available if your project is under version control.
|
Set options manually |
Choose this option to configure the behaviour of the built-in compiler manually:
|
Use tsconfig.json |
Choose this option to
have the built-in compiler analyze the code according to the settings specified in the tsconfig.json file
.
|