TypeScript
for macOS
Ctrl+Alt+S
In this dialog:
- Specify the Node.js interpreter and the
typescript
package to use in your project. - Choose whether you want to use the TypeScript Language Service or to get coding assistance from RubyMine only.
- Configure the behaviour of the built-in compiler.
Node interpreter
In this field, specify the location of the Node.js interpeter to use. In most cases, RubyMine detects it and fills in the field automatically.
TypeScript
From this drop-down list, choose the version of the TypeScript to use (RubyMine displays the currently chosen version):
- Bundled: choose this option to use the
typescript
package that comes bundled with RubyMine without attempting to find anothertypescript
package. - Select: choose this option to use a custom
typescript
package instead of the one bundled with RubyMine. Choose the path to the relevant package in the dialog that opens.
TypeScript Language Service
Select this checkbox to get native support from the TypeScript Language Service according to the up-to-date specifications. As a result:
- Syntax and error highlighting is based on the annotations from the TypeScript Language Service.
- Completion lists contain both suggestions from the TypeScript Language Service and suggestions calculated by RubyMine.
- TypeScript code is compiled into JavaScript.
Item | Description |
---|---|
Also for projects without tsconfig.json | When this checkbox is selected, the TypeScript Language Service also processes projects that do not contain a tsconfig.json configuration files. In this case, the default scope is the entire project. |
Angular Language Service | RubyMine supports integration with the Angular language service developed by the Angular team to improve code analysis and completion for Angular-TypeScript projects. Note that the Angular language service works only with the projects that use Angular 2.3.1 or higher and TypeScript version compatible with it. The Angular language service is activated by default so RubyMine starts it automatically together with the TypeScript service and shows all the errors and warnings in your TypeScript and HTML files both in the editor and in the TypeScript Tool Window. By default the checkbox is selected. |
Recompile on changes |
|
Compile scope | From this drop-down list, choose the scope in which compiler will work when you click Compile and choose Compile All in the TypeScript Tool Window. The available options are:
VCS Scopes: these scopes are only available if your project is under version control.
|
Options | In this field, specify the command line options to be passed to the TypeScript Language Service when the tsconfig.json file is not found. See the list of acceptable options at TSC arguments. Note that the -w or --watch (Watch input files) option is irrelevant. |